/* ====================================================
   MERO LOVE - REGISTER PAGE STYLES
   ==================================================== */

/* Modern CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ffa8a8 100%);
    --warning-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --dark-bg: #121212;
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-dark: rgba(30, 30, 30, 0.98);
    --text-dark: #2d3436;
    --text-light: #636e72;
    --border-light: rgba(99, 110, 114, 0.2);
    --shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 35px 70px rgba(0, 0, 0, 0.25);
    --radius-xl: 30px;
    --radius-lg: 20px;
    --radius-md: 15px;
    --radius-sm: 10px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 25s infinite linear;
}

.circle-1 { width: 400px; height: 400px; top: -50px; left: -100px; animation-delay: 0s; }
.circle-2 { width: 300px; height: 300px; top: 50%; right: -50px; animation-delay: -8s; }
.circle-3 { width: 200px; height: 200px; bottom: -50px; left: 20%; animation-delay: -16s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 30px) rotate(240deg); }
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.logo-circle {
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5);
    animation: pulse 3s infinite;
    position: relative;
    overflow: hidden;
}

.logo-circle::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 30px 60px rgba(102, 126, 234, 0.7); }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.logo-circle i {
    font-size: 48px;
    color: white;
    position: relative;
    z-index: 1;
}

.logo-text h1 {
    color: white;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(15px, 3vw, 18px);
    font-weight: 400;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Auth Card */
.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: clamp(40px, 7vw, 60px);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 4px 4px 0 0;
}

.auth-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 45px;
}

.form-header h2 {
    color: var(--text-dark);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.form-header p {
    color: var(--text-light);
    font-size: 17px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* OTP Section */
.otp-section {
    text-align: center;
}

.email-display {
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin: 20px 0 30px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.email-display i {
    color: #667eea;
    font-size: 18px;
}

/* OTP Timer */
.otp-timer {
    margin: 30px 0;
}

.timer-progress {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.timer-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    width: 100%;
    transition: width 1s linear;
}

.timer-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* OTP Input Container */
.otp-container {
    margin: 30px 0;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.otp-input {
    width: 55px;
    height: 65px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.otp-input.filled {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-color: var(--primary-color);
}

/* OTP Info */
.otp-info {
    margin: 30px 0;
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.info-item i {
    color: #667eea;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 20px;
    z-index: 2;
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 22px 25px 22px 60px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    background: white;
    transform: translateY(-2px);
    padding-left: 65px;
}

.form-input:focus + .input-icon {
    transform: translateY(-50%) scale(1.1);
    color: #764ba2;
}

.form-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23667eea' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
}

/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

/* Password Strength Meter */
.password-strength {
    margin: 15px 0 25px;
}

.strength-meter {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.4s ease;
    border-radius: 4px;
}

.strength-weak {
    background: var(--danger-gradient);
    width: 33%;
}

.strength-medium {
    background: var(--warning-gradient);
    width: 66%;
}

.strength-strong {
    background: var(--success-gradient);
    width: 100%;
}

.strength-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.strength-text.weak {
    color: #ff6b6b;
}

.strength-text.medium {
    color: #f39c12;
}

.strength-text.strong {
    color: #27ae60;
}

/* Password Match Indicator */
.match-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0 25px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.match-indicator i {
    font-size: 14px;
}

.match-indicator.valid {
    color: #27ae60;
}

.match-indicator.invalid {
    color: #ff6b6b;
}

/* Checkbox Group */
.checkbox-group {
    margin: 25px 0 30px;
}

.checkbox-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
}

.checkbox-title i {
    color: #667eea;
}

.checkbox-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    background: rgba(102, 126, 234, 0.1);
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-gradient);
    border-color: transparent;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    color: var(--text-dark);
    font-weight: 500;
}

/* Age Warning */
.age-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #f39c12;
    font-size: 14px;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 22px 30px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    margin-top: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
    letter-spacing: 1px;
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    margin-top: 20px;
}

.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(245, 87, 108, 0.4);
}

/* Messages */
.message-box {
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    animation: slideIn 0.5s ease-out;
    border-left: 5px solid;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.error-message {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
    border-left-color: #ff6b6b;
    color: #d63031;
}

.success-message {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-left-color: #27ae60;
    color: #2ecc71;
}

.message-box i {
    font-size: 24px;
    margin-right: 12px;
    vertical-align: middle;
}

.message-box p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Terms */
.terms {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.terms a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.terms a:hover {
    text-decoration: underline;
}

/* Links */
.form-links {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.form-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 15px;
    color: var(--text-light);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.02);
}

.form-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.form-link i {
    font-size: 18px;
}

/* Loading States */
.btn.loading {
    pointer-events: none;
}

.btn.loading span {
    visibility: hidden;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 576px) {
    body {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .container {
        max-width: 100%;
    }

    .auth-card {
        padding: 30px 20px;
        border-radius: 25px;
    }

    .logo-circle {
        width: 80px;
        height: 80px;
    }

    .logo-circle i {
        font-size: 36px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .checkbox-options {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        padding: 20px;
        font-size: 16px;
    }

    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 24px;
    }

    .form-link {
        display: block;
        margin: 15px 0;
        text-align: center;
    }

    .bg-circle {
        display: none;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: var(--card-dark);
        --text-dark: #f8f9fa;
        --text-light: #adb5bd;
        --border-light: rgba(255, 255, 255, 0.1);
    }

    .auth-card {
        background: var(--card-dark);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .form-input {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-dark);
        border-color: var(--border-light);
    }

    .form-input:focus {
        background: rgba(255, 255, 255, 0.1);
    }

    .email-display {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-dark);
    }

    .checkbox-option {
        background: rgba(255, 255, 255, 0.05);
    }

    .strength-meter {
        background: rgba(255, 255, 255, 0.1);
    }

    .form-link {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Shake Animation */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}