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

body {
    font-family: Inter, Segoe UI, sans-serif;
    background: #F8FAFC;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* IZQUIERDA */

.auth-brand {
    background: #155E75;
    color: white;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .brand-header img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

    .brand-header span {
        font-size: 1.8rem;
        font-weight: 700;
    }

.brand-content h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.brand-content p {
    color: #6EE7B7;
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 600px;
}

.brand-footer {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatars {
    display: flex;
}

    .avatars img {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid white;
        margin-right: -10px;
    }

/* DERECHA */

.auth-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.auth-form {
    width: 100%;
    max-width: 520px;
}

    .auth-form h2 {
        color: #1E3A5F;
        font-size: 2.6rem;
        margin-bottom: 10px;
    }

.subtitle {
    color: #64748B;
    margin-bottom: 40px;
    font-size: 1.15rem;
}

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

    .form-group label {
        display: block;
        margin-bottom: 10px;
        color: #1E293B;
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        padding: 16px;
        border-radius: 16px;
        border: 1px solid #CBD5E1;
        font-size: 1rem;
    }

.login-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

    .login-options a {
        text-decoration: none;
        color: #155E75;
        font-weight: 600;
    }

.remember-me {
    display: flex;
    gap: 8px;
}

.btn-login {
    width: 100%;
    border: none;
    background: #155E75;
    color: white;
    padding: 18px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(21,94,117,.2);
}

.btn-google {
    width: 100%;
    margin-top: 18px;
    padding: 18px;
    background: white;
    border: 1px solid #CBD5E1;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1rem;
}

.register-link {
    text-align: center;
    margin: 32px 0;
    color: #64748B;
}

    .register-link a {
        color: #155E75;
        text-decoration: none;
        font-weight: 700;
    }

.demo-card {
    background: #F0FDFA;
    border: 1px solid #B7F3E5;
    border-radius: 20px;
    padding: 20px;
}

    .demo-card p {
        margin-bottom: 16px;
        color: #155E75;
        font-weight: 600;
    }

.demo-buttons {
    display: flex;
    gap: 12px;
}

    .demo-buttons button {
        flex: 1;
        padding: 12px;
        border-radius: 14px;
        border: 1px solid #9FE9DA;
        background: white;
        cursor: pointer;
    }

/* RESPONSIVE */

@media (max-width: 1100px) {

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-form-container {
        padding: 40px 24px;
    }

    .auth-form h2 {
        font-size: 2.2rem;
    }
}
.forgot-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 24px;
}

.forgot-card {
    width: 100%;
    max-width: 500px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
}

.forgot-logo {
    text-align: center;
    margin-bottom: 20px;
}

    .forgot-logo img {
        width: 70px;
    }

.forgot-card h1 {
    text-align: center;
    color: #1e3a5f;
    margin-bottom: 12px;
}

.forgot-subtitle {
    text-align: center;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

.forgot-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.forgot-card input {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    margin-bottom: 20px;
}

.btn-primary {
    width: 100%;
    border: none;
    background: #155E75;
    color: white;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
}

.back-link {
    display: block;
    margin-top: 24px;
    text-align: center;
    color: #155E75;
    text-decoration: none;
    font-weight: 600;
}
.auth-error {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #B91C1C;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 16px;
}

.auth-success {
    background: #ECFDF5;
    border: 1px solid #6EE7B7;
    color: #065F46;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 16px;
}

.field-error {
    display: block;
    color: #B91C1C;
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: 12px;
}

.field-error:empty {
    display: none;
    margin: 0;
}

/* Inline SVG icons (see Pages/Shared/_Icon.cshtml) size themselves off the
   surrounding font-size unless a container overrides width/height. */
.svg-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}
