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

/* RESET */
* {
    box-sizing: border-box;
    font-family: 'DM Sans', system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

/* BACKGROUND GENERAL */
body {
    background: #f9fafb;
}

/* LAYOUT */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ======================
   IZQUIERDA (FONDO BLANDO)
====================== */
.login-left {
    width: 46%;
    background: #fcfcfc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

/* BRAND */
.brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand img {
    height: 64px;
    margin-bottom: 12px;
    border-radius: 50%;
    object-fit: contain;
}

.brand p {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

/* CARD */
.login-card {
    background: #ffffff;
    padding: 36px 36px 28px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
    max-width: 480px;
    width: 100%;
}

/* TITLES */
.login-card h2 {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    color: #111827;
}

.login-card span {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 28px;
}

/* FIELDS */
.field {
    margin-bottom: 18px;
}

.field label {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #374151;
}

/* INPUT */
.input-icon {
    position: relative;
}

.input-icon input {
    width: 100%;
    padding: 12px 44px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    font-size: 14px;
    background: #fafafa;
    color: #111827;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-icon input::placeholder {
    color: #c4c9d4;
}

.input-icon input:focus {
    outline: none;
    border-color: #4f6ef7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

/* OPTIONS */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    margin-bottom: 22px;
    margin-top: 4px;
}

.options a {
    color: #4f6ef7;
    text-decoration: none;
    font-weight: 500;
}

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

/* BUTTON */
.btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, hsl(230, 85%, 45%), hsl(210, 70%, 92%));
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(34, 54, 160, 0.45);
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(34, 54, 160, 0.55);
}

.btn-primary:active {
    transform: translateY(0);
    opacity: 1;
}

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #c4c9d4;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9eaec;
}

/* GOOGLE */
.btn-google {
    width: 100%;
    padding: 13px;
    border-radius: 999px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #111827;
}

.btn-google img {
    height: 20px;
}

/* REGISTER */
.register {
    text-align: center;
    font-size: 13.5px;
    margin-top: 20px;
    color: #6b7280;
}

.register a {
    color: #4f6ef7;
    font-weight: 600;
    text-decoration: none;
}

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

/* FOOTER */
footer {
    margin-top: 24px;
    font-size: 12px;
    color: #9ca3af;
}

/* ======================
   DERECHA (IMAGEN GRANDE)
====================== */
.login-right {
    width: 54%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, hsl(210, 65%, 85%), hsl(210, 70%, 92%));
    position: relative;
    overflow: hidden;
}

/* IMAGE CARD */
.image-card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    margin-bottom: 36px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(100, 140, 200, 0.25), 0 4px 16px rgba(80, 120, 180, 0.15);
    position: relative;
    z-index: 1;
}

.image-card img {
    width: 500px;
    max-width: 100%;
    display: block;
    border-radius: 28px;
}

/* TEXT */
.login-right h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e3a5f;
    position: relative;
    z-index: 1;
}

.login-right p {
    max-width: 440px;
    font-size: 15px;
    line-height: 1.75;
    color: #3d5a80;
    position: relative;
    z-index: 1;
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 1200px) {
    .image-card img {
        width: 520px;
    }
}

@media (max-width: 1024px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-right {
        display: none;
    }

    .login-left {
        width: 100%;
        min-height: 100vh;
    }
}