:root {
    --primary: #153D6C;
    --primary-dark: #281564;
    --secondary: #bf9f62;
    --light: #f8f9fa;
    --dark: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); */
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.auth-forms {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.form-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    transition: all 0.6s ease-in-out;
}

.login-container {
    opacity: 1;
    transform: translateX(0);
}

.signup-container {
    opacity: 0;
    transform: translateX(100%);
}

.auth-forms.show-signup .login-container {
    opacity: 0;
    transform: translateX(-100%);
}

.auth-forms.show-signup .signup-container {
    opacity: 1;
    transform: translateX(0);
}

.form-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.auth-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-content {
    text-align: center;
}

.auth-title {
    font-weight: 600;
    margin: 20px 0 15px;
}

.auth-text {
    opacity: 0.9;
    line-height: 1.6;
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(21, 61, 108, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.toggle-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.toggle-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 10px;
    text-align: center;
}

.success-message {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 10px;
    text-align: center;
}

.invalid-feedback {
    display: none;
}

.was-validated .form-control:invalid~.invalid-feedback {
    display: block;
}

/* Add to existing CSS */
 .btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* VERIFICATION CSS */

.otp-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.otp-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.otp-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.otp-body {
    padding: 30px;
}

.otp-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.otp-subtitle {
    color: #6c757d;
    margin-bottom: 25px;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(21, 61, 108, 0.25);
    outline: none;
}

.otp-input.filled {
    border-color: var(--secondary);
    background-color: rgba(191, 159, 98, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.countdown {
    color: var(--secondary);
    font-weight: 600;
}

.alert {
    border-radius: 8px;
    border: none;
}

.demo-otp {
    background: #e7f3ff;
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 10px;
}

.verification-type {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(21, 61, 108, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 15px;
}