* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    touch-action: manipulation;
    overscroll-behavior: none;
}

body {
    background-color: #f0f0f0;
}

/* Container to maintain mobile width on desktop */
.container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    background-color: #f0f0f0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.auth-header {
    background-color: #980000;
    padding: 15px;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.back-button {
    color: white;
    font-size: 24px;
    margin-right: 15px;
    cursor: pointer;
}

.header-title {
    font-size: 18px;
    font-weight: 500;
}

.form-container {
    padding: 20px;
}

.form-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.input-field:focus {
    outline: none;
    border-color: #980000;
}

.password-field-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 12px;
    color: #666;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    padding: 14px;
    background-color: #980000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #f03818;
}

.forgot-password {
    text-align: right;
    margin: 10px 0;
}

.forgot-password a {
    color: #980000;
    text-decoration: none;
    font-size: 14px;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background-color: #ddd;
}

.divider-text {
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: space-between;
}

.social-button {
    width: 48%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.social-icon {
    margin-right: 10px;
    font-size: 18px;
}

.register-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.register-prompt a {
    color: #980000;
    text-decoration: none;
    font-weight: bold;
}

.login-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.login-prompt a {
    color: #980000;
    text-decoration: none;
    font-weight: bold;
}

.form-tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid #ddd;
}

.tab.active {
    color: #980000;
    border-bottom: 2px solid #980000;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
}

.terms-checkbox input {
    margin-right: 10px;
    margin-top: 3px;
}

.terms-text {
    font-size: 14px;
    color: #666;
}

.terms-text a {
    color: #980000;
    text-decoration: none;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 60px;
    color: #4caf50;
    margin-bottom: 20px;
}

.success-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.success-description {
    color: #666;
    margin-bottom: 20px;
}

/* Hide all pages by default */
.page {
    display: none;
}

/* Show active page */
.page.active {
    display: block;
}
