/* ===== General Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

/* ===== Body ===== */
body {
    background: #f5f5f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 70px; /* space for fixed header */
}

/*
/* ===== Header ===== */
header {
    width: 100%;
    background-color: #b10012;
    padding: 15px 50px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

header .header-logo {
    height: 60px;
    width: auto;
}

header .header-text {
    font-size: 1.8rem;
    font-weight: bold;
}


/* ===== Auth Container ===== */
.auth-container {
    background: #fff;
    padding: 35px 50px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: all 0.3s ease;
}

/* ===== Headings ===== */
.auth-container h2 {
    font-size: 1.8rem;
    color: #b10012;
    margin-bottom: 15px;
}

/* ===== Paragraphs ===== */
.auth-container p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* ===== Input Fields ===== */
.auth-container input[type="email"],
.auth-container input[type="password"],
.auth-container input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-container input:focus {
    border-color: #b10012;
    outline: none;
    box-shadow: 0 0 5px rgba(177, 0, 18, 0.3);
}

/* ===== Buttons ===== */
.auth-container button {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    border: none;
    background: #b10012;
    color: #fff;
}

.auth-container button:hover {
    background: #9b000f;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


button:disabled,
button[disabled] {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.8;
}


.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: left;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
}

.error {
    color: #dc3545;
    font-size: 13px;
    margin-bottom: 10px;
    text-align: left;
}


.auth-container a {
    display: inline-block;
    margin-top: 15px;
    color: #b10012;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-container a:hover {
    color: #9b000f;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 25px 20px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.modal-content .close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-content .close:hover {
    color: #b10012;
}


@media (max-width: 480px) {
    .auth-container {
        padding: 25px 20px;
    }

    header {
        font-size: 1.1rem;
        padding: 10px;
        gap: 8px;
    }

    header .header-logo {
        height: 30px;
    }

    header .header-text {
        font-size: 1rem;
    }
}
