/* ==========================================================
   LOGIN PAGE STYLES - LIGHT & DARK THEME SUPPORT
   Separated from Blade views as per guidelines
   ========================================================== */

/* Full Screen Container */
.login-page-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ebf0f5 0%, #e2e8f0 50%, #d8e2eb 100%);
    transition: background 0.3s ease;
}

html.dark .login-page-bg {
    background: linear-gradient(135deg, #12222e 0%, #1a3243 50%, #152735 100%);
}

/* Floating Ambient Blobs */
.login-blob-1 {
    position: absolute;
    top: -6rem;
    left: -6rem;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
}

html.dark .login-blob-1 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 70%);
}

.login-blob-2 {
    position: absolute;
    bottom: -6rem;
    right: -6rem;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
}

html.dark .login-blob-2 {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(14, 165, 233, 0) 70%);
}

.login-blob-3 {
    position: absolute;
    top: 35%;
    right: -4rem;
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0) 70%);
    filter: blur(35px);
    pointer-events: none;
}

html.dark .login-blob-3 {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0) 70%);
}

/* Theme Toggle Button in Top-Right */
.login-theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 50;
}

.login-theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background: #ffffff;
}

html.dark .login-theme-toggle {
    background: rgba(30, 53, 70, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

html.dark .login-theme-toggle:hover {
    background: rgba(39, 67, 88, 0.95);
    color: #fde047;
}

/* Main Login Box */
.login-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 30px -8px rgba(18, 40, 54, 0.12), 0 8px 12px -6px rgba(18, 40, 54, 0.06);
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 28rem;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) {
    .login-box {
        padding: 2.75rem 2.5rem;
    }
}

html.dark .login-box {
    background: rgba(31, 54, 71, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.5), 0 10px 16px -6px rgba(0, 0, 0, 0.35);
}

/* Headings */
.login-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0c4352;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

html.dark .login-title {
    color: #ffffff;
}

.login-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-top: 0.25rem;
}

html.dark .login-subtitle {
    color: #94a3b8;
}

/* Form Inputs */
.login-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0c4352;
    margin-bottom: 0.5rem;
}

html.dark .login-label {
    color: #e2e8f0;
}

.login-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.login-input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

html.dark .login-input {
    background: #162a38;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

html.dark .login-input:focus {
    background: #193142;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.login-input::placeholder {
    color: #94a3b8;
}

html.dark .login-input::placeholder {
    color: #64748b;
}

/* Input Icons */
.login-input-icon {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    font-size: 0.95rem;
}

html.dark .login-input-icon {
    color: #64748b;
}


/* Disable native Edge / IE / browser default password reveal and clear buttons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input::-ms-reveal,
input::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Password Toggle Eye Button */
.login-toggle-pw {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease;
    z-index: 20;
}

.login-toggle-pw:hover {
    color: #475569;
}

html.dark .login-toggle-pw {
    color: #94a3b8;
}

html.dark .login-toggle-pw:hover {
    color: #ffffff;
}

/* Submit Button */
.login-submit-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: linear-gradient(135deg, #0c4352 0%, #135d72 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(12, 67, 82, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(12, 67, 82, 0.35);
    background: linear-gradient(135deg, #0e5264 0%, #166e87 100%);
}

.login-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(12, 67, 82, 0.2);
}

html.dark .login-submit-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

html.dark .login-submit-btn:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
}

/* Ensure scroll-to-top button never displays on login page */
.scroll-to-top-btn {
    display: none !important;
}

/* Validation Errors Alert Notification */
.login-alert {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 0.95rem 1.15rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
    transition: all 0.2s ease;
}

.login-alert-icon {
    font-size: 1rem;
    color: #ef4444;
    flex-shrink: 0;
}

.login-alert-text {
    flex: 1;
}

.login-alert-text p {
    margin: 0;
}

html.dark .login-alert {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

html.dark .login-alert-icon {
    color: #f87171;
}

