/* Global Reset & Prevent Horizontal Scroll */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    overflow-x: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

/* Page Layout */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

/* Auth Box UI */
.auth-wrapper {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    animation: slideUpFade 0.6s ease-out forwards;
}

/* Animations */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Toggle Buttons */
.auth-toggle {
    display: flex;
    background: #f0f2f5;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}
.auth-toggle button {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #666;
}
.auth-toggle button.active {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 2px 5px rgba(13,110,253,0.3);
}

/* Typography & Headings */
.auth-section h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #1a1a1a;
}
.auth-message {
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
    min-height: 20px;
}

/* Form Inputs */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e1e5eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}
.form-group input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-submit:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13,110,253,0.3);
}
.btn-submit:disabled {
    background: #9abcf8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-register {
    background: #198754;
}
.btn-register:hover {
    background: #157347;
    box-shadow: 0 4px 10px rgba(25,135,84,0.3);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
    .auth-section h3 {
        font-size: 18px;
    }
    .form-group label {
        font-size: 13px;
    }
    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
    .btn-submit {
        padding: 12px;
        font-size: 15px;
    }
    .auth-toggle button {
        padding: 10px;
        font-size: 14px;
    }
}