/* Register Page - Proton Mail Exact Match */
.register-page {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Header */
.register-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo .logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.header-tabs {
    display: flex;
    gap: 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    flex: 1;
    max-width: 300px;
    margin: 0 auto;
}

.tab-button {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.language-button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.language-button:hover {
    background: #f8f9fa;
}

/* Main Layout */
.register-main {
    padding: 40px 0;
}

.register-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Side: Plans */
.register-left {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.billing-cycle-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.cycle-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.cycle-btn.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cycle-badge {
    position: absolute;
    top: -8px;
    right: 8px;
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.plan-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.plan-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-card:hover {
    border-color: #6D4AFF;
    box-shadow: 0 4px 12px rgba(109, 74, 255, 0.1);
}

.plan-card.selected {
    border-color: #6D4AFF;
    background: #f0f4ff;
    box-shadow: 0 4px 12px rgba(109, 74, 255, 0.15);
}

.plan-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.plan-header input[type="radio"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.plan-label {
    flex: 1;
    cursor: pointer;
}

.plan-name {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.plan-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.price-period {
    font-size: 14px;
    color: #64748b;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li i {
    color: #10b981;
    font-size: 16px;
}

.features-list {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 12px 0;
    font-size: 14px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: #6D4AFF;
    font-size: 18px;
    width: 24px;
}

/* Right Side: Form */
.register-right {
    display: flex;
    align-items: flex-start;
}

.register-form-container {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.register-form .form-group {
    margin-bottom: 24px;
}

.register-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #1e293b;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"],
.register-form input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background: white;
    color: #1e293b;
}

.register-form input:focus {
    outline: none;
    border-color: #6D4AFF;
    box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.1);
}

.username-input-group {
    display: flex;
    align-items: center;
}

.username-input-group input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.domain-suffix {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-left: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.password-input-group {
    position: relative;
}

.password-input-group input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #1e293b;
}

.username-status {
    margin-top: 8px;
    font-size: 13px;
}

.status-pending {
    color: #64748b;
}

.status-checking {
    color: #f59e0b;
}

.status-success {
    color: #10b981;
    font-weight: 500;
}

.status-error {
    color: #ef4444;
    font-weight: 500;
}

.register-form small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.register-form .btn {
    margin-top: 8px;
}

.form-footer {
    margin-top: 32px;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.form-footer p {
    color: #64748b;
    font-size: 14px;
}

.form-footer a {
    color: #6D4AFF;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #10b981;
    color: #ffffff;
    border: 1px solid #059669;
    font-weight: 500;
}

.alert-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Recovery Email Verification */
.recovery-email-group {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.recovery-email-group input {
    flex: 1;
}

.btn-small {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
    min-width: 100px;
}

.btn-secondary {
    background: #f8f9fa;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.verification-code-group {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

input:disabled {
    background: #f8f9fa;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .register-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .register-left {
        position: static;
    }
    
    .register-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .header-tabs {
        order: 3;
        width: 100%;
        margin-top: 12px;
    }
    
    .register-form-container {
        padding: 32px 24px;
    }
    
    .form-title {
        font-size: 28px;
    }
    
    .plan-cards {
        gap: 12px;
    }
    
    .plan-card {
        padding: 20px;
    }
}

