/* ===========================================================
   ElectricalVPF ERP
   Login Screen v1.0
=========================================================== */

:root {
    --primary: #ff6b00;
    --primary-dark: #e55f00;

    --bg1: #0f172a;
    --bg2: #1e293b;

    --card: #ffffff;

    --text: #1f2937;
    --muted: #6b7280;

    --border: #e5e7eb;

    --shadow: 0 20px 50px rgba(0, 0, 0, .25);

    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg1), var(--bg2));
    min-height: 100vh;
    overflow-x: hidden;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right,
            rgba(255, 107, 0, .15),
            transparent 35%),
        radial-gradient(circle at bottom left,
            rgba(255, 255, 255, .05),
            transparent 30%);
}

.login-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 45px 50px;
    width: 100%;
    max-width: 480px;
    margin: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .28);
    animation: fadeIn 0.4s ease-out;
}

.logo-circle {
    width: 80px;
    height: 80px;
    margin: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ff6b00;
    color: white;
    font-size: 36px;
    box-shadow: 0 0 35px rgba(255, 107, 0, .35);
}

.brand-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.brand-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* --- Input Fixes --- */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.input-group-text {
    width: 50px;
    justify-content: center;
    background: #f8fafc;
    border-color: var(--border);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.form-control {
    height: 52px;
    font-size: 15px;
    border-color: var(--border);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(255, 107, 0, .15);
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary);
    color: var(--primary);
}

.toggle-btn {
    border-color: var(--border);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* --- Button Login --- */
.btn-login {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    height: 54px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.btn-login:hover {
    background-color: var(--primary-dark) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
}

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

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-footer {
    margin-top: 35px;
    text-align: center;
    color: #6b7280;
}

#loginAlert {
    margin-bottom: 20px;
}

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

/* --- Responsive --- */
@media(max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }

    .logo-circle {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }

    .brand-title {
        font-size: 1.5rem;
    }
}