/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* BODY */
body {
    background: #f5f7fb;
    color: #333;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 30px 0;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    padding: 15px 30px;
    color: white;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #d1d5db;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ffffff;
}

/* BUTTONS */
.btn {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    border: 1px solid transparent;
}

.btn.primary {
    background: #3b82f6;
}

.btn.primary:hover {
    background: #2563eb;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

/* HERO */
.hero {
    background: white;
    padding: 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero p {
    color: #666;
    margin-bottom: 20px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* FOOTER */
.footer {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    background: #111827;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .auth-buttons {
        flex-direction: column;
    }
}


/* Login Page */
/* ===== AUTH LOGIN PAGE ===== */

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    min-height: 70vh;
}

.auth-card {
    width: 420px;
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 5px;
    font-size: 26px;
    color: #111827;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 15px;
    color: #6b7280;
}

.form-bottom a {
    color: #3b82f6;
    text-decoration: none;
}

.form-bottom a:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #2563eb;
}

.footer-text {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #6b7280;
}

.footer-text a {
    color: #3b82f6;
    text-decoration: none;
}

/* alert  */

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 350px;

    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    animation: slideInRight 0.4s ease-out;
}

/* SUCCESS */
.alert.success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

/* ERROR */
.alert.error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* SLIDE FROM RIGHT */
@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* FADE OUT */
.alert.hide {
    animation: fadeOutRight 0.4s ease forwards;
}

@keyframes fadeOutRight {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* end of alert */