/* ===============================
   BASE GENERAL
================================*/
body {
    background: #1A1A1A; /* Fondo oscuro */
    margin: 0;
    margin-top: -4rem;
    font-family: 'Inter', sans-serif;
    color: #e5e5e5;
    overflow-y: hidden;
    overflow-x: hidden;
}

/* Centrado total */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px;
}

/* ===============================
   NEUMORPHISM CARD (DARK)
================================*/
.auth-card {
    background: #2a2a2a;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    padding-top: 20px;
    border-radius: 20px;

    box-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.85),
        -6px -6px 15px rgba(255, 255, 255, 0.04);

    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===============================
   TITULO
================================*/
.auth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #f3f3f3;
}

/* ===============================
   INPUTS (DARK)
================================*/
.auth-group {
    margin-block: 24px;
    line-height: 1.4;
}

.auth-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #dcdcdc;
}

.auth-input {
    width: 97%;
    margin-left: -0.1rem;
    margin-top: 0.2rem;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    background: #242424;
    color: #e9e9e9;

    box-shadow:
        inset 3px 3px 6px rgba(0, 0, 0, 0.6),
        inset -3px -3px 6px rgba(255, 255, 255, 0.06);

    font-size: 15px;
    transition: all 0.2s ease;
}

.auth-input:focus {
    outline: none;
    box-shadow:
        inset 1px 1px 3px rgba(0, 0, 0, 0.5),
        inset -1px -1px 3px rgba(255, 255, 255, 0.07),
        0 0 0 3px rgba(255, 255, 255, 0.03);
}

/* ===============================
   CHECKBOX
================================*/
.auth-remember {
    margin: 15px 0;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #9ca3af;
}

/* ===============================
   MENSAJES
================================*/
.auth-error {
    color: #f87171;
    font-size: 12px;
    margin-top: 4px;
}

.auth-status {
    background: #064e3b;
    padding: 10px;
    margin-top: 1.3rem;
    margin-bottom: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    color: #b9f2dd;
}

/* ===============================
   BOTÓN (DARK NEUMORPHISM)
================================*/
.auth-button {
    background: #262626;
    padding: 12px 20px;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #e5e5e5;
    transition: 0.2s ease;

    box-shadow:
        5px 5px 12px rgba(0, 0, 0, 0.65),
        -5px -5px 12px rgba(255, 255, 255, 0.05);
}

.auth-button:hover {
    transform: translateY(-2px);
}

.auth-button:active {
    transform: translateY(1px);
}

/* ===============================
   LINKS
================================*/
.auth-link {
    font-size: 14px;
    color: #bbbbbb;
    text-decoration: none;
    transition: 0.2s ease;
    cursor: pointer;
}

.auth-link:hover {
    color: #ffffff;
}

/* Flex de acciones */
.auth-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-logo {
    width: 100%;
    max-width: 210px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 25px auto;
    object-fit: cover;
    padding: 0;
    border: 2px solid #828282;
}

.auth-app-name {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 25px;
    color: #D6D6D6;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    position: relative;
}

hr {
    border: none;
    height: 1px;
    background: #4D4D4D;
    margin: 25px 0;
    border-radius: 10px;
    margin-block: 1.8rem;
}

.auth-logout {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.auth-logout:hover {
    color: #000;
}

.profile-section-card {
    background: #292929;
    padding: 25px;
    margin-top: 35px;
    margin-bottom: 50px;
    border-radius: 18px;
    box-shadow:
        6px 6px 14px rgba(0,0,0,0.7),
        -4px -4px 10px rgba(255,255,255,0.05);
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-header {
    display: flex;
    flex-direction: column;
    
}

.profile-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #DEDEDE;
}

.profile-description {
    font-size: 0.9rem;
    color: #A6A6A6;
    line-height: 1.4;
    margin-top: -0.3rem;
    margin-bottom: 0;
}

.danger-button {
    background: #d9534f;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.danger-button:hover {
    background: #c9302c;
}

/* Modal */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-description {
    font-size: 0.95rem;
    color: #555;
}

.modal-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.input-text {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.input-error p {
    color: #d9534f;
    font-size: 0.85rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.secondary-button {
    padding: 10px 18px;
    background: #eee;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.secondary-button:hover {
    background: #ddd;
}


/* Backdrop del modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Caja del modal */
.modal-container {
    background: #383838;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    animation: modalFadeIn 0.2s ease;
}

/* Animación */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

select {
    width: 103% !important;
}


/* Responsive! */

@media (max-width: 580px) {
    .auth-input {
        width: 93%;
    }
}
