/* Modern Minimalist Login Styles */

/* Screen Background with Ambient Glowing Orbs */
.auth-bg-custom {
    position: relative;
    min-height: 100vh;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Ambient glow blobs */
.auth-bg-custom::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.auth-bg-custom::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    padding: 1.5rem;
    margin: 0 auto;
}

/* Glassmorphism Centered Card */
.login-glass-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.12);
    border-radius: 1.5rem !important;
    padding: 2.5rem 2.25rem;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .login-glass-card {
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(59, 130, 246, 0.15);
}

/* Header & Brand Logo */
.login-brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.login-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

[data-bs-theme="dark"] .login-header-title {
    color: #f8fafc;
}

.login-header-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

[data-bs-theme="dark"] .login-header-subtitle {
    color: #94a3b8;
}

/* Custom Form Input Fields */
.input-label-custom {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    display: block;
}

[data-bs-theme="dark"] .input-label-custom {
    color: #cbd5e1;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-custom .input-icon-left {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    transition: color 0.25s ease;
    z-index: 5;
    pointer-events: none;
}

.input-group-custom .form-control-custom {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 2.85rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0.75rem;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.25s ease;
}

[data-bs-theme="dark"] .input-group-custom .form-control-custom {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.input-group-custom .form-control-custom:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

[data-bs-theme="dark"] .input-group-custom .form-control-custom:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.input-group-custom .form-control-custom:focus ~ .input-icon-left {
    color: #3b82f6;
}

/* Password Toggle Icon */
.input-group-custom .password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    z-index: 5;
}

.input-group-custom .password-toggle-btn:hover {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Primary Button */
.btn-primary-custom {
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.975rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    width: 100%;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-primary-custom:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Links */
.link-custom {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-custom:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Alert Styling */
.alert-custom {
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid transparent;
}

.alert-custom-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #dc2626;
}

[data-bs-theme="dark"] .alert-custom-danger {
    background-color: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.alert-custom-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #d97706;
}

[data-bs-theme="dark"] .alert-custom-warning {
    background-color: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

/* Footer text */
.login-footer-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

[data-bs-theme="dark"] .login-footer-text {
    color: #94a3b8;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.login-footer-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.login-footer-text a:hover {
    text-decoration: underline;
}
