:root {
    --primary: #28a745;
    --primary-hover: #218838;
    --bg-light: #f0f2f5;
    --card-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    --text-main: #1c1e21;
    --text-secondary: #606770;
    --border-color: #dddfe2;
}

body {
    background-color: var(--bg-light) !important;
    font-family: 'Inter', Helvetica, Arial, sans-serif !important;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.register-page-container {
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.register-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 480px;
    padding: 16px;
    box-sizing: border-box;
}

.register-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.register-logo {
    width: 40px;
    height: auto;
    margin-bottom: 10px;
}

.register-header h1 {
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 0;
    color: var(--text-main);
    font-weight: 700;
}

.register-header .subtitle {
    font-size: 15px;
    line-height: 24px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    position: relative;
}

.form-group input, 
.dob-row select, 
.custom-gender-box select,
.custom-gender-box input {
    width: 100%;
    padding: 11px;
    background: #f5f6f7;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
}

.form-group input:focus,
.dob-row select:focus {
    border-color: var(--primary);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    margin: 0;
    width: auto;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.btn-toggle-password:hover {
    color: var(--text-main);
    transform: none;
    box-shadow: none;
}

.password-requirements {
    margin-top: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.req-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.req-item {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.req-item i {
    font-size: 8px;
}

.req-item.valid {
    color: var(--primary);
}

.req-item.valid i {
    color: var(--primary);
}

.req-item.invalid {
    color: #fa3e3e;
}

.req-item.invalid i {
    color: #fa3e3e;
}

.strength-meter-container {
    height: 4px;
    background: #eee;
    margin-top: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-weak { background-color: #fa3e3e; }
.strength-medium { background-color: #ff9900; }
.strength-strong { background-color: #00a400; }

.section-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}

.dob-row {
    display: flex;
    gap: 8px;
}

.gender-row {
    display: flex;
    gap: 8px;
}

.gender-option {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
}

.gender-option span {
    font-size: 15px;
    color: var(--text-main);
}

.gender-option input {
    width: auto;
    margin: 0;
}

.custom-gender-box {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: #f5f6f7;
}

.custom-gender-box small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 11px;
}

.tos-text {
    font-size: 11px;
    color: #777;
    margin: 10px 0;
    line-height: 15px;
    text-align: left;
}

.tos-text a {
    color: #385898;
    text-decoration: none;
}

.tos-text a:hover {
    text-decoration: underline;
}

.btn-signup {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 10px !important;
    cursor: pointer !important;
    margin: 10px 0 20px 0 !important;
    box-shadow: none !important;
    transition: background 0.2s !important;
    width: 100%;
}

.btn-signup:hover:not(:disabled) {
    background: var(--primary-hover) !important;
    transform: none !important;
}

.btn-signup:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    margin-left: 10px;
}

.register-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    text-align: center;
}

.register-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.register-footer a:hover {
    text-decoration: underline;
}

.error-message.centered {
    text-align: center;
}

/* OTP Styling */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.otp-dot {
    width: 45px;
    height: 55px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.otp-dot:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
    outline: none;
}

.otp-instruction {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: left;
}

.otp-actions {
    margin: 10px 0;
    text-align: left;
}

.otp-actions a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

/* Profile Setup Styling */
.profile-setup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.avatar-large-preview {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #eee;
}

.avatar-large-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.pfp-camera-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #e4e6eb;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pfp-camera-btn:hover {
    background: #d8dadf;
}

.avatar-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    width: 100%;
}

.avatar-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.avatar-thumb.selected {
    border-color: var(--primary);
}

.avatar-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.btn-skip {
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 5px !important;
    width: auto !important;
    margin-top: 10px !important;
    box-shadow: none !important;
}

.btn-skip:hover {
    text-decoration: underline;
}

.btn-row-space {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.btn-back-simple {
    background: #e4e6eb !important;
    color: #050505 !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    width: auto !important;
}

.btn-back-simple:hover {
    background: #d8dadf !important;
}

.hidden {
    display: none !important;
}

.mt-10 { margin-top: 10px; }

/* Mobile optimization */
@media (max-width: 480px) {
    .register-page-container {
        padding: 0;
    }
    .register-card {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        margin: 0;
        box-shadow: none;
        padding: 16px;
    }
}