/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Form Container */
.form-container {
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Typography */
h1 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

p {
    line-height: 1.6;
    font-size: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

/* Buttons */
button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.3);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* reCAPTCHA */
.g-recaptcha {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Messages */
.message {
    text-align: center;
    font-size: 14px;
    margin: 16px 0;
    padding: 12px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Navigation Links */
.logout {
    position: fixed;
    top: 16px;
    right: 16px;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    z-index: 100;
}

.logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Dashboard Statistics */
.statistics {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    margin: 28px 0;
    border-radius: 12px;
}

.statistics .item {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.statistics .item:hover {
    transform: translateY(-4px);
}

.statistics h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.statistics b {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Modal */
.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);
    padding-top: 60px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: 5% auto;
    padding: 32px;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.close-btn {
    float: right;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.close-btn:hover,
.close-btn:focus {
    opacity: 1;
    transform: scale(1.2);
}

/* Select Dropdown */
select {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Utility Classes */
center {
    display: flex;
    justify-content: center;
}

small {
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .form-container {
        padding: 28px;
        max-width: 100%;
    }

    h1 {
        font-size: 26px;
    }

    .statistics {
        flex-direction: column;
        gap: 12px;
    }

    .statistics .item {
        padding: 16px;
    }

    .logout {
        top: 12px;
        right: 12px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .modal-content {
        width: 90%;
        padding: 24px;
    }
}