﻿
:root {
    --bg-page: #eef6f1;
    --bg-dark-panel: #212c28;
    --text-accent: #8bc1a5;
    --text-muted-dark: #84948d;
    --btn-bg: #2c6b51;
    --btn-bg-hover: #1e4e3b;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    margin: 0;
}

.login-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    width: 100%;
    max-width: 960px;
    min-height: 550px;
}

.panel-left {
    background-color: var(--bg-dark-panel);
    padding: 3rem;
    color: #fff;
}

.panel-left h1 {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.text-accent {
    color: var(--text-accent);
}

.panel-left-desc {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 90%;
}

.panel-left-footer {
    color: var(--text-muted-dark);
    font-size: 0.8rem;
    margin-bottom: 0;
}

.panel-right {
    padding: 3rem 4rem;
    background-color: #fff;
    min-width: 0;
}

.back-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-block;
    margin-bottom: 1rem;
}

.back-link:hover {
    color: #495057;
}

.pre-title {
    color: #2c6b51;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.main-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.custom-input-group {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    min-width: 0;
}

.custom-input-group:focus-within {
    border-color: var(--btn-bg);
    box-shadow: 0 0 0 3px rgba(44, 107, 81, 0.15);
}

.custom-input-group .input-icon {
    padding: 0.7rem 0.5rem 0.7rem 1rem;
    color: #84948d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-input-group .form-control {
    border: none;
    padding: 0.7rem 0.8rem 0.7rem 0.4rem;
    box-shadow: none;
    background-color: transparent;
    font-size: 0.9rem;
    color: #495057;
    width: 100%;
    min-width: 0;
}

.custom-input-group .form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
    opacity: 1;
}

.btn-submit {
    background-color: var(--btn-bg);
    color: #fff;
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: none;
    width: 100%;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
}

.btn-submit:hover,
.btn-submit:focus-visible {
    background-color: var(--btn-bg-hover);
    color: #fff;
}

.panel-right-footer {
    color: #84948d;
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .panel-left {
        padding: 2rem;
    }

    .panel-right {
        padding: 2.5rem 2rem;
    }

    .panel-left h1 {
        font-size: 1.8rem;
    }

    .main-title {
        font-size: 1.6rem;
    }
}

/* Móviles */
@media (max-width: 767.98px) {
    .login-wrapper {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 12px;
        align-items: flex-start;
    }

    .login-card {
        min-height: auto;
        border-radius: 16px;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    }

    .login-card > .row {
        height: auto !important;
    }

    .panel-left {
        padding: 1.5rem 1.25rem;
    }

    .panel-left .d-flex.align-items-center.gap-3.mb-5.mt-2 {
        margin-top: 0 !important;
        margin-bottom: 1.5rem !important;
        gap: 12px !important;
    }

    .panel-left img {
        display: block;
    }

    .panel-left h1 {
        font-size: 1.55rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .panel-left > .mt-3 {
        margin-top: 0 !important;
    }

    .panel-left-desc {
        max-width: 100%;
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .panel-left-footer {
        font-size: 0.72rem;
    }

    .panel-left .mt-auto {
        padding-top: 1rem !important;
    }

    .panel-right {
        padding: 1.5rem 1.25rem;
    }

    .back-link {
        margin-bottom: 0.25rem;
        font-size: 0.82rem;
    }

    .panel-right > .mt-4 {
        margin-top: 1.25rem !important;
    }

    .main-title {
        font-size: 1.55rem;
        line-height: 1.3;
    }

    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .panel-right form {
        margin-top: 1rem !important;
    }

    .panel-right form .mb-4 {
        margin-bottom: 1rem !important;
    }

    .form-label {
        font-size: 0.82rem;
    }

    .custom-input-group .form-control {
        font-size: 16px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .custom-input-group .input-icon {
        padding-left: 0.85rem;
    }

    .btn-submit {
        min-height: 48px;
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .panel-right > .mt-4.pt-2 {
        margin-top: 0.75rem !important;
        padding-top: 0.25rem !important;
    }

    .panel-right-footer {
        font-size: 0.72rem;
    }
}

/* Móviles pequeños */
@media (max-width: 380px) {
    .login-wrapper {
        padding: 8px;
    }

    .panel-left,
    .panel-right {
        padding: 1.15rem 1rem;
    }

    .panel-left h1 {
        font-size: 1.4rem;
    }

    .main-title {
        font-size: 1.4rem;
    }

    .panel-left .lh-sm h4 {
        font-size: 1.1rem !important;
    }

    .panel-left .lh-sm span {
        font-size: 0.62rem !important;
        letter-spacing: 1px !important;
    }
}
