/* Authentication Pages Styles */

/* Login Page */
.login-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.logo-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.logo-container img {
    max-height: 60px;
    display: block;
}

.welcome-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    position: relative;
    z-index: 1;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.login-body {
    padding: 2rem;
}

.login-body .form-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-body .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.login-body .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.login-body .input-group-text {
    border-radius: 0 10px 10px 0;
    border: 2px solid #e9ecef;
    border-left: none;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-body .input-group-text:hover {
    background: #e9ecef;
    color: #667eea;
}

.login-body .input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.login-body .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    cursor: pointer;
}

.login-body .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.login-body .form-check-label {
    font-size: 0.95rem;
    color: #6c757d;
    cursor: pointer;
    margin-right: 0.5rem;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.version-text {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    text-align: center;
}

/* OTP Page */
.otp-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInScale 0.5s ease;
    position: relative;
}

.otp-back-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.otp-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

.otp-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.otp-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.otp-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.otp-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.otp-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0;
    position: relative;
    z-index: 1;
}

.otp-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.otp-body {
    padding: 2rem;
}

.otp-input-container {
    margin-bottom: 1.5rem;
}

.otp-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.otp-input {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 1rem;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.otp-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
    outline: none;
}

.btn-verify {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-verify::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.btn-verify:hover::before {
    left: 100%;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.timer-container {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.timer {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
    display: inline-block;
    min-width: 50px;
    margin: 0 0.25rem;
}

.otp-info {
    background: rgba(102, 126, 234, 0.1);
    border-right: 3px solid #667eea;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #667eea;
}

/* Common Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}