/**
 * Login Page Styles - Larisin
 * POS Frozen Food — Frosty blue color scheme with Poppins font
 */

/* Reset */
.login-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(140deg, #020c1b 0%, #0a1628 38%, #0f2847 100%);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Animated Background */
.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 80% at 80% -20%, rgba(56, 189, 248, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 20% 100%, rgba(125, 211, 252, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating Orbs - Icy effect */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: orb-float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.38), rgba(186, 230, 253, 0.2));
    top: -10%;
    right: 20%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.3), rgba(14, 165, 233, 0.18));
    bottom: 10%;
    left: 10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(147, 197, 253, 0.18));
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Grid Pattern Overlay */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Left Panel - Branding */
.login-branding {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    z-index: 1;
}

.login-branding-content {
    max-width: 520px;
    text-align: center;
}

.branding-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

/* Icon-based Logo */
.logo-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow:
        0 20px 60px rgba(14, 165, 233, 0.4),
        0 0 80px rgba(56, 189, 248, 0.15);
    animation: logo-pulse 3s ease-in-out infinite;
}

.logo-icon i {
    font-size: 48px;
    color: #ffffff;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.branding-title {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #bae6fd 50%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: 6px;
}

.branding-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 50px;
    line-height: 1.8;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateX(12px);
    box-shadow: 0 10px 40px -10px rgba(56, 189, 248, 0.3);
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(56, 189, 248, 0.18));
    border-radius: 12px;
    color: #7dd3fc;
    font-size: 18px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    flex-shrink: 0;
}

.feature-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

/* Right Panel - Login Form */
.login-form-panel {
    width: 520px;
    min-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    position: relative;
    z-index: 2;
    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.3);
}

.login-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0ea5e9, #38bdf8, #7dd3fc);
}

.login-form-container {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

/* Login Card Box */
.login-card {
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow:
        0 4px 24px rgba(14, 165, 233, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8, #7dd3fc);
    border-radius: 20px 20px 0 0;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8, #0284c7);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.3);
}

.login-header-icon i {
    font-size: 28px;
    color: #ffffff;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label-premium {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1;
}

.form-input-premium {
    width: 100%;
    padding: 16px 18px 16px 54px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #e0f2fe;
    border-radius: 14px;
    background: #f0f9ff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
}

.form-input-premium:focus {
    border-color: #38bdf8;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12), 0 4px 12px rgba(14, 165, 233, 0.1);
}

.form-input-premium:focus+i,
.input-wrapper:focus-within i {
    color: #0ea5e9;
}

.form-input-premium::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Login Button */
.btn-login-premium {
    width: 100%;
    padding: 18px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 55%, #0284c7 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    font-family: 'Poppins', sans-serif;
}

.btn-login-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-login-premium:hover:not(:disabled)::before {
    left: 100%;
}

.btn-login-premium:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.45);
}

.btn-login-premium:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-login-premium:disabled {
    cursor: not-allowed;
    opacity: 0.85;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 5px 15px rgba(100, 116, 139, 0.3);
}

.btn-login-premium i {
    font-size: 18px;
}

/* Loading Spinner */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e0f2fe;
}

.login-footer p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.login-footer .govt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f9ff;
    border-radius: 8px;
    margin-top: 12px;
}

.login-footer .govt-badge i {
    color: #0ea5e9;
}

.login-footer .govt-badge span {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
    .login-branding {
        display: none;
    }

    .login-wrapper {
        justify-content: center;
        align-items: center;
        padding: 24px;
    }

    .login-form-panel {
        width: 100%;
        max-width: 480px;
        min-width: unset;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    .login-form-panel::before {
        display: none;
    }

    .login-card {
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(186, 230, 253, 0.3);
        padding: 40px 32px;
    }

    .login-footer {
        border-top-color: rgba(255, 255, 255, 0.15);
    }

    .login-footer p {
        color: rgba(255, 255, 255, 0.7);
    }

    .login-footer .govt-badge {
        background: rgba(255, 255, 255, 0.1);
    }

    .login-footer .govt-badge span {
        color: rgba(255, 255, 255, 0.9);
    }

    .login-footer .govt-badge i {
        color: #7dd3fc;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-form-panel {
        max-width: 100%;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .login-title {
        font-size: 1.4rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    .login-header {
        margin-bottom: 32px;
    }

    .login-header-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .login-header-icon i {
        font-size: 22px;
    }

    .form-input-premium {
        padding: 14px 16px 14px 48px;
        font-size: 14px;
        border-radius: 12px;
    }

    .btn-login-premium {
        padding: 16px 24px;
        font-size: 15px;
        border-radius: 12px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .login-footer {
        margin-top: 32px;
        padding-top: 20px;
    }
}

@media (max-width: 380px) {
    .login-card {
        padding: 28px 20px;
    }

    .login-title {
        font-size: 1.25rem;
    }

    .form-input-premium {
        padding: 12px 14px 12px 44px;
        font-size: 13px;
    }

    .btn-login-premium {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Toast Override */
.toast-success {
    background-color: #0ea5e9 !important;
}

.toast-error {
    background-color: #ef4444 !important;
}
