/* ==========================================================================
   EduSmart ERP - Admin Auth Stylesheet (Forgot & Reset Password)
   Avoids inline CSS and provides responsive glassmorphic authentication styling
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.admin-auth-body {
    min-height: 100vh;
    background: url('../images/login-bg.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

body.admin-auth-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 45px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.brand-section {
    text-align: center;
    margin-bottom: 35px;
}

.brand-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffffff;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease;
}

.brand-icon:hover {
    transform: rotate(5deg) scale(1.05);
}

.login-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.login-sub {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.input-wrapper {
    position: relative;
    margin-bottom: 22px;
}

.input-wrapper i.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-wrapper .toggle-pw-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

.input-wrapper .toggle-pw-btn:hover {
    color: var(--primary);
}

.form-control-auth {
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    padding: 12px 16px 12px 48px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    color: #1e293b;
    width: 100%;
}

.form-control-auth:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.btn-primary-action {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px;
    border-radius: 14px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-action:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

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

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

.back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 22px;
    justify-content: center;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   Alert Styles
   -------------------------------------------------------------------------- */
.alert-error {
    border-radius: 14px;
    font-size: 0.88rem;
    padding: 12px 16px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.alert-success {
    border-radius: 14px;
    font-size: 0.88rem;
    padding: 14px 16px;
    border: none;
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.alert-warning {
    border-radius: 14px;
    font-size: 0.88rem;
    padding: 14px 16px;
    border: none;
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.alert-icon-fixed {
    flex-shrink: 0;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Dev Mode Reset Link Box
   -------------------------------------------------------------------------- */
.reset-link-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    margin-top: 20px;
}

.reset-link-box .label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reset-link-box .link-text {
    font-size: 0.78rem;
    color: var(--primary);
    word-break: break-all;
    line-height: 1.5;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    display: block;
    text-decoration: none;
}

.reset-link-box .link-text:hover {
    text-decoration: underline;
}

.copy-btn {
    margin-top: 10px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: var(--primary-hover);
}

.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Password Strength Meter (Reset Password)
   -------------------------------------------------------------------------- */
.strength-meter {
    margin-top: 8px;
    display: none;
}

.strength-bar {
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.req-list {
    display: none;
    list-style: none;
    padding: 10px 0 4px;
    margin: 0;
}

.req-list li {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.req-list li.met {
    color: #10b981;
}

.req-list li i {
    font-size: 0.72rem;
}

.toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.toggle-pw:hover {
    color: var(--primary);
}

.email-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Animated Floating Background Circles
   -------------------------------------------------------------------------- */
.floating-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.float-circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.float-circle-1 {
    width: 80px;
    height: 80px;
    left: 10%;
    bottom: -100px;
    animation-delay: 0s;
}

.float-circle-2 {
    width: 120px;
    height: 120px;
    left: 20%;
    bottom: -150px;
    animation-delay: 5s;
    animation-duration: 25s;
}

.float-circle-3 {
    width: 50px;
    height: 50px;
    left: 70%;
    bottom: -80px;
    animation-delay: 2s;
}

.float-circle-4 {
    width: 150px;
    height: 150px;
    left: 85%;
    bottom: -200px;
    animation-delay: 8s;
    animation-duration: 30s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.footer-text {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.footer-text span {
    font-weight: 700;
    color: #ffffff;
}
