/* Estilos de la página de inicio de sesión */

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D1F1C 0%, #1B4D44 40%, #2A7A6A 70%, #3FA392 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
    padding: 16px;
}

body::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem;
    background: rgba(18, 28, 26, 0.75);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo .icon {
    width: 56px;
    height: 56px;
    background: rgba(63, 163, 146, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
    color: #6CD4C0;
}

.login-logo h1 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.login-logo p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin: 0.2rem 0 0;
}

.campo {
    margin-bottom: 0.9rem;
}

.campo label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    display: block;
}

.campo .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    height: 46px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.campo .form-control:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(63, 163, 146, 0.5);
    box-shadow: 0 0 0 3px rgba(63, 163, 146, 0.1);
}

.campo .form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.campo .form-control.is-invalid {
    border-color: #E8726A;
    box-shadow: 0 0 0 3px rgba(232, 114, 106, 0.1);
}

.campo .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(26, 50, 44, 0.95) inset !important;
    -webkit-text-fill-color: #fff !important;
}

.campo textarea.form-control {
    height: auto;
    min-height: 46px;
}

.campo .position-relative .form-control {
    padding-right: 42px;
}

.toggle-password {
    color: rgba(255, 255, 255, 0.35);
    line-height: 1;
    background: none;
    border: none;
}

.btn-action {
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, #2A7A6A, #3FA392);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 0.25rem;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(42, 122, 106, 0.35);
    background: linear-gradient(135deg, #318D7B, #4BB5A3);
    color: #fff;
}

.btn-action:active {
    transform: translateY(0);
}

.form-check {
    margin: 0.75rem 0;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    cursor: pointer;
    user-select: none;
}

.form-check-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    margin-top: 0.25em;
}

.form-check-input:checked {
    background-color: #3FA392;
    border-color: #3FA392;
}

.invalid-feedback {
    color: #FF8A82;
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.alert-box {
    background: rgba(232, 114, 106, 0.12);
    border: 1px solid rgba(232, 114, 106, 0.2);
    border-radius: 10px;
    color: #FF8A82;
    font-size: 0.82rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
}

.alert-box.success {
    background: rgba(63, 163, 146, 0.12);
    border-color: rgba(63, 163, 146, 0.2);
    color: #8CE0D0;
}

.copyright {
    text-align: center;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.7rem;
}

@media (max-width: 480px) {
    body { padding: 12px; }
    .login-card { padding: 1.5rem 1.25rem; border-radius: 16px; }
    .login-logo .icon { width: 48px; height: 48px; font-size: 1.3rem; }
    .login-logo h1 { font-size: 1.05rem; }
    .campo .form-control { height: 42px; font-size: 0.85rem; }
    .btn-action { padding: 0.65rem; font-size: 0.9rem; }
}
