/*
 * Vel Tech High Tech
 * Forgot Password page styling
 * Matches the existing first_login_setup.php design.
 * UI only — no OTP, email, session, database, or password logic changes.
 */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    color: #333;
}

.sphere {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255,255,255,0.8),
        rgba(255,255,255,0.15)
    );
    filter: blur(2px);
    animation: floatSphere 20s infinite ease-in-out;
}

@keyframes floatSphere {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    33% {
        transform: translateY(-60px) translateX(40px) scale(1.1);
    }
    66% {
        transform: translateY(40px) translateX(-40px) scale(0.9);
    }
}

.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.3) inset;
    animation: slideUp 0.55s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo > i {
    display: inline-block;
    font-size: 2.8rem !important;
    margin-bottom: 10px !important;
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #764ba2 !important;
}

.auth-logo h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.auth-logo p {
    color: #666;
    margin-top: 8px;
    font-size: 0.95rem;
}

.auth-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 0.9rem;
    animation: shake 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-6px);
    }
    75% {
        transform: translateX(6px);
    }
}

.info-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-box i {
    font-size: 1.5rem;
    color: #764ba2;
    margin-bottom: 8px;
    display: block;
}

.field-wrap {
    margin-bottom: 16px;
}

.field-wrap label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.field-wrap input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.field-wrap input::placeholder {
    color: #999;
}

.field-wrap input:focus {
    border-color: #bc1888;
    box-shadow: 0 0 0 3px rgba(188,24,136,0.12);
}

.btn-gradient {
    width: 100%;
    min-height: 50px;
    padding: 14px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
    box-shadow: 0 8px 20px -5px rgba(220,39,67,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-gradient:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -5px rgba(220,39,67,0.4);
}

.btn-gradient:active:not(:disabled) {
    transform: translateY(0);
}

.btn-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-back {
    text-align: center;
    margin-top: 20px;
}

.auth-back a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #764ba2;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.auth-back a:hover {
    color: #bc1888;
    transform: translateX(-2px);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.field-wrap input:-webkit-autofill,
.field-wrap input:-webkit-autofill:hover,
.field-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: #333;
    box-shadow: 0 0 0 1000px #fff inset;
}

@media (max-width: 480px) {
    body {
        padding: 14px;
        align-items: flex-start;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .auth-card {
        padding: 30px 20px;
        border-radius: 26px;
    }

    .auth-logo {
        margin-bottom: 26px;
    }

    .auth-logo h2 {
        font-size: 1.5rem;
    }

    .auth-logo > i {
        font-size: 2.35rem !important;
    }

    .field-wrap input {
        padding: 13px 15px;
    }

    .sphere {
        opacity: 0.65;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
