/**
 * SIGMIX Registration Page Styles
 */

.register-section {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    background: linear-gradient(135deg, #FAFBFC 0%, #F3F4F6 100%);
}

.register-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(7, 0, 120, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 0, 120, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.register-container {
    width: 100%;
    max-width: 460px;
    z-index: 1;
}

.register-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border: 1px solid #E5E7EB;
}

.register-header {
    text-align: center;
    margin-bottom: 32px;
}

.register-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #070078, #1a1a5c);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.register-icon i {
    font-size: 28px;
    color: white;
}

.register-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.register-header p {
    color: #6B7280;
    font-size: 14px;
    margin: 0;
}

/* Form Styles */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-label .required {
    color: #EF4444;
}

.form-label .optional {
    color: #9CA3AF;
    font-weight: 400;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #FFFFFF;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #070078;
    box-shadow: 0 0 0 3px rgba(7, 0, 120, 0.1);
}

.form-input::placeholder {
    color: #9CA3AF;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 16px;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
}

.password-toggle:hover {
    color: #070078;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-text {
    font-size: 11px;
    font-weight: 600;
    min-width: 50px;
}

/* Checkbox */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
    background: #070078;
    border-color: #070078;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.checkbox-label a {
    color: #070078;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.register-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #070078, #1a1a5c);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.register-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 0, 120, 0.3);
}

.register-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.register-btn .btn-text,
.register-btn .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.register-btn .btn-loading {
    display: none;
}

.register-btn.loading .btn-text {
    display: none;
}

.register-btn.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #DC2626;
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}

.message i {
    flex-shrink: 0;
}

/* Free Features Box */
.free-features {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 20px;
    margin-top: 8px;
}

.free-features h3 {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.free-features h3 i {
    color: #070078;
}

.free-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.free-features li {
    font-size: 12px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.free-features li i {
    color: #10B981;
    font-size: 10px;
}

.upgrade-note {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
    font-size: 11px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upgrade-note i {
    color: #070078;
}

/* Footer */
.register-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
    margin-top: 8px;
}

.register-footer p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.register-footer a {
    color: #070078;
    font-weight: 600;
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 520px) {
    .register-card {
        padding: 24px;
    }
    
    .free-features ul {
        grid-template-columns: 1fr;
    }
    
    .register-header h1 {
        font-size: 20px;
    }
}
