body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
}

/* Layout */
.auth-container {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

/* Card */
.auth-box {
    background-color: #ffffff;
    width: 45%;
    max-width: 500px;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.register-box {
    max-width: 900px;
}

/* Headings */
h1 {
    color: #377586;
    font-size: 30px;
    margin-bottom: 12px;
    font-weight: 600;
}

.subtitle {
    color: #377586;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.85;
}

/* Role Buttons */
.role-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.role-btn {
    padding: 12px 32px;
    background-color: #f0f0f0;
    color: #377586;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
}

.role-btn:hover {
    background-color: #e4e4e4;
    border-color: #377586;
}

/* Form */
.auth-form {
    margin-top: 30px;
    text-align: left;
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 18px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #377586;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #377586;
}

.form-group input::placeholder {
    color: #aaa;
}

.success-box {
    margin: 0;
    padding: 0;
    color: #377586;
    font-weight: 500;
}

.error-box {
    margin: 0;
    padding: 0;
    color: red;
    margin-top: 10px;
}

/* Button */
.submit-btn,
.auth-btn {
    display: block;
    margin: 25px auto;
    padding: 12px 32px;
    background-color: #377586;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s;
    text-align: center;
    text-decoration: none;
}

.submit-btn:hover,
.auth-btn:hover {
    background-color: #4a9aa5;
}

/* Link style used in verify/reset pages */
.auth-links {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: #377586;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Footer text */
.bottom-link {
    margin-top: 10px;
    font-size: 14px;
    color: #377586;
    text-align: center;
}

.bottom-link a {
    color: #377586;
    text-decoration: none;
    font-weight: 500;
}

.bottom-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    .auth-container {
        padding: 25px 15px;
    }

    .auth-box {
        padding: 35px 25px;
        border-radius: 8px;
        width: 100%;
    }

    h1 {
        font-size: 22px;
    }

    .subtitle {
        font-size: 13px;
    }

    .role-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .role-btn {
        width: 100%;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .submit-btn {
        width: 100%;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal .modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal .modal-close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 20px;
}

.modal .modal-close:hover {
    color: #377586;
}

.modal h2 {
    color: #377586;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.modal p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}
