@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    font-size: 16px;
    background-color: #000;
}

.hidden {
    display: none !important;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-align: left;
    padding: 0 5%;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/peluquería/foto2.2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* ---------- AUTH CONTAINER ---------- */
.auth-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 450px;
    max-width: 90%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    animation: authFadeUp 0.8s ease forwards;
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
}

.auth-header button {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.auth-header button.active {
    color: #fff;
    background: rgba(33, 189, 236, 0.2);
    border-bottom: 3px solid #21bdec;
}

.auth-body {
    padding: 40px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #21bdec;
    font-size: 1.2rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #21bdec;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(33, 189, 236, 0.3);
}

.btn-auth {
    background: #21bdec;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-auth:hover {
    background: #1999bf;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 189, 236, 0.4);
}

.forgot-pass {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
    transition: 0.3s;
}

.forgot-pass:hover {
    color: #21bdec;
}

/* ---------- MENSAJES ALERTA ---------- */
.alert-msg {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}

.alert-msg.success {
    background: rgba(33, 189, 100, 0.15);
    border: 1px solid rgba(33, 189, 100, 0.4);
    color: #6effa5;
}

.alert-msg.error {
    background: rgba(220, 50, 50, 0.15);
    border: 1px solid rgba(220, 50, 50, 0.4);
    color: #ffaaaa;
}

/* ---------- PANEL USUARIO AUTENTICADO ---------- */
.auth-logged {
    padding: 40px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.auth-logged h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.auth-logged p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.btn-logout {
    background: rgba(220, 50, 50, 0.7) !important;
    margin-top: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-logout:hover {
    background: rgba(200, 30, 30, 0.9) !important;
}


/* ---------- FOOTER ---------- */
.footer {
    background: #e6e6e6;
    padding: 60px 5%;
    color: #444;
    font-family: 'Raleway', sans-serif;
}

.footer img {
    margin-bottom: 20px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer a {
    text-decoration: none;
    color: #555;
    transition: .3s;
}

.footer a:hover {
    color: #000;
    transform: translateX(3px);
}

.social {
    display: flex;
    gap: 35px;
    margin-top: 6%;
    font-size: 150%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: .9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.social a:hover {
    transform: scale(1.1);
    color: #000;
}

/* ---------- MOVIL ---------- */
@media(max-width:768px) {
    .auth-container {
        padding: 90px 10px 40px;
    }

    .auth-card {
        width: 100%;
        border-radius: 16px;
    }

    .auth-header {
        padding: 20px 20px 15px;
    }

    .auth-body {
        padding: 20px 18px 25px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-input {
        font-size: 0.9rem;
    }

    .btn-auth {
        width: 100%;
    }
}

/* ---------- FIX SAFARI IPHONE ---------- */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}