/* Authentication Styles (Login, Register, Forgot Password) */
.login-section,
.register-section {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(26, 54, 93, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.login-section::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 102, 0, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.login-card,
.register-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-card {
    max-width: 450px;
}

.register-card {
    max-width: 600px;
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2,
.register-header h2 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-header p,
.register-header p {
    color: #64748b;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--primary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.1);
}

.btn-login,
.btn-register {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
    width: 100%;
    margin-top: 20px;
    font-size: 1.1rem;
}

.btn-login:hover,
.btn-register:hover {
    background-color: #2a4365;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.3);
    color: white;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #94a3b8;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider:not(:empty)::before {
    margin-right: .75em;
}

.divider:not(:empty)::after {
    margin-left: .75em;
}

.btn-line {
    background-color: #06C755;
    color: white;
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-line:hover {
    background-color: #05b34c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.3);
    color: white;
}

.login-footer,
.register-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
}

.login-footer a,
.register-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-footer a:hover,
.register-footer a:hover {
    color: var(--secondary-accent);
    text-decoration: underline;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--primary-color);
}

.login-logo,
.register-logo {
    display: block;
    margin: 0 auto 20px;
    height: 60px;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
}

/* Password show/hide toggle */
.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 2.5rem;
}

.password-field .js-toggle-password {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    z-index: 5;
}

/* Register Step Indicator */
.register-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 35px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #edf2f7;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 2px solid #edf2f7;
}

.step-circle i {
    display: none;
}

.step-item.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-item.completed .step-circle {
    background: var(--secondary-accent);
    border-color: var(--secondary-accent);
    color: white;
}

.step-item.completed .step-circle .step-num {
    display: none;
}

.step-item.completed .step-circle i {
    display: inline;
}

.step-label {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.step-item.active .step-label {
    color: var(--primary-color);
}

.step-item.completed .step-label {
    color: var(--secondary-accent);
}

.step-line {
    flex: 0 0 60px;
    height: 2px;
    background: #edf2f7;
    margin-top: 17px;
}

.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.step-actions .btn-register {
    margin-top: 0;
}

.step-actions .btn-outline-secondary {
    flex: 0 0 auto;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 20px;
}

/* Forgot Password Specific */
.forgot-section {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.forgot-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.forgot-header {
    text-align: center;
    margin-bottom: 30px;
}

.forgot-header h2 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.forgot-header .icon-box {
    width: 70px;
    height: 70px;
    background: rgba(26, 54, 93, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
}

.btn-forgot {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-forgot:hover {
    background-color: #2a4365;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.3);
    color: white;
}

.forgot-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
}

.forgot-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.forgot-logo {
    display: block;
    margin: 0 auto 20px;
    height: 50px;
}

/* CAPTCHA / Verification Code Styling */
.login-captcha {
    position: relative;
    margin-bottom: 25px !important;
}

.excaptcha {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid #edf2f7;
}

.excaptcha-canvas {
    border-radius: 8px;
    height: 40px !important;
    width: auto !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.excaptcha-refresh {
    width: 38px;
    height: 38px;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
    color: #64748b !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: none;
    padding: 0;
}

.excaptcha-refresh:hover {
    background: #1a365d !important;
    color: white !important;
    border-color: #1a365d !important;
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.excaptcha-refresh i {
    font-size: 1.1rem;
}

/* Adjust floating label for captcha */
.login-captcha .form-control:focus ~ label,
.login-captcha .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}