/**
 * Login page – professional, Facebook/Reddit-style layout
 */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    font-family: 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
    background: #f0f2f5;
}

/* —— Left: Branding panel —— */
.login-brand {
    flex: 1 1 50%;
    min-height: 100vh;
    background: linear-gradient(135deg, #c2410c 0%, #f97316 50%, #9a3412 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.login-brand::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.login-brand .logo-text {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.login-brand .tagline {
    font-size: 1.25rem;
    line-height: 1.5;
    opacity: 0.95;
    font-weight: 400;
    margin: 0;
}

/* —— Right: Form panel —— */
.login-form-panel {
    flex: 1 1 50%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f0f2f5;
}

.login-card {
    width: 100%;
    max-width: 396px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 2rem 2.5rem;
}

.login-card .card-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c2410c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.login-card .card-subtitle {
    color: #65676b;
    font-size: 0.9375rem;
    margin: 0 0 1.5rem 0;
}

.login-msg {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.login-msg.error {
    background: #fff0f0;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.login-msg.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.login-page .form-group {
    margin-bottom: 1rem;
}

.login-page .form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 6px;
}

.login-page .form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    background: #fff;
    color: #1c1e21;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-page .form-group input::placeholder {
    color: #8a8d91;
}

.login-page .form-group input:hover {
    border-color: #bcc0c4;
}

.login-page .form-group input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.login-page .btn-login {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.0625rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #c2410c, #f97316);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(194, 65, 12, 0.35);
}

.login-page .btn-login:hover {
    background: linear-gradient(135deg, #9a3412, #ea580c);
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.4);
}

.login-page .btn-login:active {
    transform: scale(0.99);
}

.login-forgot {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

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

.login-divider {
    height: 1px;
    background: #dddfe2;
    margin: 1.5rem 0;
}

.login-create {
    text-align: center;
}

.login-create .btn-create {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #42b72a;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-create .btn-create:hover {
    background: #36a420;
}

.login-create p {
    margin: 0;
    font-size: 0.9375rem;
    color: #1c1e21;
}

.login-create a {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
}

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

/* —— Responsive: stack on small screens —— */
@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
    }

    .login-brand {
        min-height: auto;
        padding: 2.5rem 2rem;
    }

    .login-brand .logo-text {
        font-size: 2.5rem;
    }

    .login-brand .tagline {
        font-size: 1.1rem;
    }

    .login-form-panel {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .login-card {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-page .form-group input {
        font-size: 16px;
        /* prevents iOS auto-zoom on focus */
    }
}