@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Modern Electrical SaaS Login Styling */
html {
    height: -webkit-fill-available;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0b132b 100%) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #f8fafc;
}

.container-login {
    max-width: 820px;
    min-height: 440px;
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.box-logo {
    width: 44%;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0 !important;
}

.logo {
    object-fit: contain;
    max-width: 260px;
    max-height: 180px;
}

.box-login {
    width: 56%;
    padding: 36px 32px !important;
}

.box-login h3 {
    color: #0f172a !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    font-size: 22px;
}

.box-login form {
    width: 100%;
}

.box-login .form-control {
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
}

.box-login .form-control:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
}

.box-login .btn-primary {
    background-color: #0d9488 !important;
    border-color: #0d9488 !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3) !important;
}

.box-login .btn-primary:hover {
    background-color: #0f766e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4) !important;
}

.footer {
    color: #94a3b8 !important;
    font-size: 12px;
}

.footer a {
    color: #38bdf8 !important;
    text-decoration: none;
    font-weight: 600;
}

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

/* Mobile Styling */
@media (max-width: 767.98px) {
    .container-login {
        min-height: auto;
    }

    .box-logo,
    .box-login {
        width: 100%;
    }

    .box-logo {
        border-right: none !important;
    }

    .logo {
        max-height: 150px;
    }

    .footer {
        max-width: 100%;
        border-radius: 0 !important;
    }
}

/* QHD Styling */
@media (min-width: 2560px) {
    .container-login,
    .footer {
        max-width: 960px;
    }

    .container-login {
        min-height: 540px;
    }

    .logo {
        max-height: calc(540px - 3rem);
    }
}

/* 4K Styling */
@media (min-width: 3840px) {
    .container-login,
    .footer {
        max-width: 1140px;
    }

    .container-login {
        min-height: 641.25px;
    }

    .logo {
        max-height: calc(641.25px - 3rem);
    }
}

/* Specific Styling */
@media (max-width: 359.98px) {
    .g-recaptcha {
        overflow-x: auto; /* Makes sure reCAPTCHA is usable on the smallest screens */
        min-height: 86px;
    }
}
