/* ===== OVERLAY ===== */
.auth-overlay {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== CONȚINUT ===== */
.auth-content {
    background: transparent;
    width: 100%;
    color: #fff;
    padding: 0px 0px 20px 0px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* ===== HEADER CU TABURI ===== */
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(270deg, #050607, #BA9056 50%, #151517);
    border-image-slice: 1;
    padding: 13px 0px;
}

.auth-tabs {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.auth-tabs li {
    cursor: pointer;
    padding: 7px 21px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Playfair Display', serif;
}

.auth-tabs li.active {
    color: #EDB86E;
}

.auth-tabs li.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    border: 1px solid transparent;
    border-image: linear-gradient(270deg, #050607, #BA9056 50%, #0A1112);
    border-image-slice: 1;
}

/* ===== CLOSE BUTTON ===== */
.auth-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s;
}

.auth-close:hover {
    color: #ff4c4c;
}

/* ===== FORME ===== */
.auth-body {
    margin-top: 20px;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.auth-form.active {
    display: flex;
}

/* ===== INPUTURI CU LABEL ===== */
.auth-form .input-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.auth-form .input-wrapper input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: #1a1a1a80;
    color: #EDB86E;
    border: none;
    border-radius: 6px 6px 0 0;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
    outline: none;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(270deg, #050607, #BA9056 50%, #151517);
    border-image-slice: 1;
}

.auth-form .input-wrapper input:focus {
    border-bottom-color: #f0c578;
    background-color: #222;
}

.auth-form .input-wrapper label {
    position: absolute;
    left: 12px;
    top: 18px;
    font-size: 16px;
    color: #aaa;
    pointer-events: none;
    transition: all 0.2s ease;
    background: #1a1a1a;
    padding: 0 4px;
    font-family: 'LucidaCalligraphy', cursive;
}

.auth-form .input-wrapper input:focus+label,
.auth-form .input-wrapper input:not(:placeholder-shown)+label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #EDB86E;
    background: #1a1a1a;
}

/* ===== TERMS CHECKBOX ===== */
/* Containerul label-ului */
.terms-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    position: relative;
    user-select: none;
}

/* Ascunde checkbox-ul standard */
.terms-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Checkbox personalizat */
.terms-label .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #EDB86E;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

/* Hover efect */
.terms-label:hover .checkmark {
    border-color: #f0c578;
}

/* Bifa */
.terms-label .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 5px;
    height: 10px;
    border: solid #EDB86E;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.logged-in-message {
    display: inline-grid;
}

/* Când este bifat */
.terms-label input:checked~.checkmark {
    background-color: rgba(237, 184, 110, 0.15);
    border-color: #EDB86E;
}

.terms-label input:checked~.checkmark::after {
    opacity: 1;
}


/* ===== BUTOANE ===== */
.auth-form button {
    place-self: anchor-center;
    width: 35rem;
}

/* ===== ALERTS ===== */
.auth-alert {
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 10px;
}

.auth-alert.alert-danger {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4c4c;
}

.auth-alert.alert-success {
    background: rgba(0, 255, 0, 0.15);
    color: #4cff4c;
}

/* ===== ANIMATII ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* ===== RESPONSIVE DESIGN ===== */

/* Pentru tablete și telefoane mari */
@media screen and (max-width: 1024px) {
    .auth-content {
        max-width: 90%;
        padding: 10px;
    }

    .auth-tabs li {
        font-size: 12px;
        padding: 6px 16px;
    }

    .auth-form .input-wrapper input {
        font-size: 16px;
        padding: 12px;
    }

    .auth-form .input-wrapper label {
        font-size: 14px;
        top: 16px;
    }

    .auth-form button {
        width: 100%;
    }
}

/* Pentru telefoane mici */
@media screen and (max-width: 600px) {
    .auth-content {
        max-width: 95%;
        padding: 5px;
    }

    .auth-form {
        gap: 10px;
    }

    .auth-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .auth-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .auth-tabs li {
        font-size: 11px;
        padding: 5px 12px;
    }

    .auth-form .input-wrapper input {
        font-size: 14px;
        padding: 10px;
    }

    .auth-form .input-wrapper label {
        font-size: 12px;
        top: 14px;
    }

    .auth-form button {
        width: 100%;
        font-size: 11px;
        margin-top: -9px;
    }

    .terms-label {
        font-size: 11px;
        flex-direction: row;
        align-items: flex-start;
    }
}