

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: #0a7a3d;
    background-image:
            repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px),
            repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ========================================
   CARD BASE (Login & Register)
   ======================================== */
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    width: 100%;
    max-width: 550px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   LOGO + TITLE ROW (Both Pages)
   ======================================== */
.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 0.5rem;
}

.logo {
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f8f9fa;
    border: 2px dashed #0a7a3d;
    border-radius: 12px;
    flex-shrink: 0;
}

.left-logo  { background-image: url('../images/TN_logo.png'); }
.right-logo { background-image: url('../images/AWB_logo.png'); }

.board-title {
    color: #0a7a3d;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0;
    white-space: nowrap;
}

.header-subtitle {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1.8rem;
    font-size: 1.25rem;
}

/* ========================================
   HOME LINK (Top Left)
   ======================================== */
.home-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    opacity: 0.9;
    transition: 0.3s;
}
.home-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ========================================
   FORM INPUTS
   ======================================== */
.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1.5px solid #ced4da;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Labels with Icons */
.form-label i {
    color: #28a745;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-auth {
    background: #28a745;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 1rem;
    width: 100%;
}
.btn-auth:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

/* ========================================
   TEXT LINKS
   ======================================== */
.text-link {
    color: #0a7a3d;
    font-size: 0.9rem;
    text-decoration: none;
}
.text-link:hover {
    text-decoration: underline;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}
.alert-success {
    background-color: rgba(209, 231, 221, 0.95);
    color: #0f5132;
    border: 1px solid rgba(25, 135, 84, 0.2);
}
.alert-danger {
    background-color: rgba(248, 215, 218, 0.95);
    color: #842029;
    border: 1px solid rgba(220, 53, 69, 0.2);
}


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
    .auth-card {
        margin: 1rem;
        padding: 2rem;
    }
    .logo {
        width: 50px;
        height: 50px;
    }
    .board-title {
        font-size: 1.3rem;
    }
    .header-title {
        gap: 10px;
    }
}