/* ===========================
   GLOBAL RESET & BASE STYLE
   =========================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Overlay scuro leggero per leggibilità */
.bg-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0; left: 0;
    background: rgba(0,0,0,0.45);
}

/* ===========================
   MAIN CONTAINER
   =========================== */
.auth-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* ===========================
   AUTH CARD / BOX
   =========================== */
.auth-box {
    width: 380px;
    background: rgba(255,255,255,0.92);
    padding: 26px;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    text-align: center;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1c1e21;
}

.auth-subtitle {
    font-size: 15px;
    color: #4a4a4a;
    margin-bottom: 18px;
}

/* ===========================
   INPUTS
   =========================== */
.auth-box input {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #dddfe2;
    font-size: 16px;
}

.auth-box input:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24,119,242,0.2);
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #166fe5;
}

.btn-green {
    width: 100%;
    padding: 14px;
    background: #42b72a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 12px;
}

.btn-green:hover {
    background: #36a420;
}

/* ===========================
   LINKS & DIVIDER
   =========================== */
.auth-link {
    display: block;
    margin-top: 14px;
    color: #1877f2;
    font-size: 14px;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.divider {
    border-bottom: 1px solid #dadde1;
    margin: 20px 0;
}

/* ===========================
   ALERT MESSAGES
   =========================== */
.error {
    background: #ffebe8;
    color: #d8000c;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.success {
    background: #e6f7e6;
    color: #2d7a2d;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.info {
    background: #e7f3ff;
    color: #0c63d4;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ===========================
   2-COLUMN LAYOUT
   =========================== */

.auth-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 40px 80px;
}

/* Testo nella colonna sinistra */
.auth-left {
    max-width: 480px;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.auth-left h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.auth-left p {
    font-size: 20px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Colonna destra contenente il box */
.auth-right {
    display: flex;
    justify-content: center;
    width: 420px;
}

/* Mobile layout */
@media (max-width: 900px) {

    .auth-wrapper {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .auth-left {
        margin-bottom: 30px;
    }

    .auth-right {
        width: 100%;
        max-width: 380px;
    }
}



/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 480px) {
    .auth-box {
        width: 100%;
        max-width: 340px;
        padding: 22px;
    }
}
