
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --background: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--background);
    min-height: 100vh;
}

button, input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-brand {
    background: linear-gradient(145deg, #0f172a, #172554 65%, #1e40af);
    color: white;
    padding: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.brand-content {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    font-weight: 800;
    box-shadow: 0 10px 30px #2563eb55;
}

.brand-content h1 {
    font-size: 38px;
    font-weight: 800;
    margin-top: 30px;
    letter-spacing: -1.5px;
}

.brand-content h1 span {
    color: #60a5fa;
}

.brand-content > p {
    color: #cbd5e1;
    font-size: 15px;
    margin-top: 14px;
    line-height: 1.7;
}

.brand-decoration {
    height: 280px;
    position: relative;
    margin-top: 55px;
}

.decoration-circle {
    position: absolute;
    border: 1px solid #ffffff20;
    border-radius: 50%;
}

.circle-one {
    width: 270px;
    height: 270px;
    left: 30px;
    top: 0;
}

.circle-two {
    width: 200px;
    height: 200px;
    left: 65px;
    top: 35px;
    background: #3b82f610;
}

.circle-three {
    width: 120px;
    height: 120px;
    left: 105px;
    top: 75px;
    background: #60a5fa20;
}

.brand-footer {
    color: #94a3b8;
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 35px;
}

.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    background: #ffffff;
}

.login-card {
    width: 100%;
    max-width: 410px;
}

.mobile-logo {
    display: none;
}

.login-heading {
    margin-bottom: 35px;
}

.eyebrow {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.login-heading h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 13px;
}

.login-heading p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 23px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
}

.form-group input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    font-size: 13px;
    transition: 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #2563eb15;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 100px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.login-button {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.login-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.message {
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.message.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.message.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.login-divider {
    height: 1px;
    background: var(--border);
    margin: 30px 0 22px;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
}

.security-icon {
    color: #16a34a;
    font-size: 12px;
}

.login-footer {
    text-align: center;
    color: #94a3b8;
    font-size: 10px;
    margin-top: 55px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 850px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }

    .login-section {
        min-height: 100vh;
        padding: 35px 24px;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 65px;
        font-size: 17px;
        font-weight: 800;
    }

    .mobile-logo .brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 22px;
    }

    .login-heading h2 {
        font-size: 27px;
    }

    .login-footer {
        margin-top: 45px;
    }
}

@media (max-width: 380px) {
    .login-section {
        padding: 25px 18px;
    }

    .mobile-logo {
        margin-bottom: 45px;
    }
}
