/* ===== GLOBAL ===== */
body, html {
    font-family: 'Montserrat', sans-serif !important;
    background: #0d0d0d;
    color: #fff;
    max-width: 480px;
    margin: 0 auto;
}

.center-page {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    min-height: 100vh;
}

.form-box {
    width: 90%;
    padding: 0 16px;
}

/* ===== CARD ===== */
.auth-card {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ===== HEADER ===== */
.auth-header { text-align: center; margin-bottom: 20px; }
.auth-title { font-size: 24px; font-weight: 700; }
.auth-subtitle { font-size: 14px; color: #aaa; }

/* ===== TABS ===== */
.auth-tabs {
    position: relative;
    display: flex;
    background: #2b2b2b;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 22px;
}

.auth-tab {
    flex: 1;
    padding: 10px 0;
    font-size: 13px;
    color: #aaa;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    transition: 0.25s ease;
}

/* SLIDER */
#tab-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(33.33% - 4px);
    background: #fff;
    border-radius: 999px;
    transition: all .35s cubic-bezier(.25, .8, .25, 1);
    z-index: 1;
}

/* TAB ACTIVO */
.auth-tab.active {
    color: #000;
    font-weight: 600;
    z-index: 2;
}

/* ===== FORMS ===== */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 30px;
    animation: fadeSlide .35s ease;
    margin-top: 25px;
    margin-bottom:25px ;
    width: 100%;
}

.auth-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

/* Animación suave */
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Labels */
.auth-field label {
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    color: #ccc;
    text-align: left;
    margin-left: 10px;
}

/* Inputs estilo iOS dark */
.auth-input {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 999px;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    transition: .2s ease;
    width: 100%;
    box-sizing: border-box;
}
.auth-input:focus {
    border-color: #777;
    background: #151515;
}

/* ===== Password wrap + eye (no desborda) ===== */
.auth-passwrap{
    position: relative;
    width: 100%;
}

.auth-input-pass{
    padding-right: 52px; /* espacio para el ojo */
}

.auth-eye{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.auth-eye-ic{
    width: 20px;
    height: 20px;
    fill: #000; /* OJO NEGRO */
}

/* Botón iOS */
.auth-btn {
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}
.auth-btn:hover { opacity: 0.85; }

/* Link */
.auth-inline-link {
    background: none;
    border: none;
    color: #aaa;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.auth-footnote {
    font-size: 12px;
    text-align: center;
    color: #888;
    margin-top: 10px;
}
