/* Harbor Platform - Authentication Pages CSS */

:root {
    --primary: #0066FF;
    --primary-dark: #004FC4;
    --primary-light: #3385FF;
    --primary-bg: rgba(0, 102, 255, 0.05);
    
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    min-height: 100vh;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 4px;
    background: white;
    padding: 4px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Auth Container */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Auth Box - Split View for Login */
.auth-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Auth Box Large - For Register */
.auth-box-large {
    display: block;
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Auth Left - Form Side */
.auth-left {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-content {
    width: 100%;
    max-width: 400px;
}

/* Logo */
.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 40px;
}

.auth-logo.center {
    justify-content: center;
    width: 100%;
}

.auth-logo svg {
    width: 48px;
    height: 48px;
}

.auth-logo span {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Auth Header */
.auth-header {
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.2;
}

.auth-header p {
    color: var(--gray-600);
    font-size: 16px;
}

/* Login Type Toggle */
.login-type-toggle {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--gray-100);
    border-radius: 10px;
    margin-bottom: 24px;
}

.toggle-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Messages */
#auth-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Forms */
.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
    background: white;
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--danger);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--gray-500);
}

.form-hint {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 6px;
}

/* Input Group */
.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.input-group input {
    padding-left: 48px;
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--gray-600);
}

.eye-closed {
    display: none;
}

.hidden {
    display: none !important;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

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

.strength-text {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form Row */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Checkbox */
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-700);
}

.checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Form Errors */
.form-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: var(--danger);
}

/* Links */
.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    font-family: var(--font-family);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-bg);
}

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

.btn-block {
    width: 100%;
}

/* Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

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

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 14px;
}

.auth-footer p {
    margin: 0;
}

/* Auth Right - Feature Side */
.auth-right {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, -50px) rotate(180deg); }
}

.auth-feature {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 500px;
}

.auth-feature h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.auth-feature p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 32px;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    opacity: 0.95;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat p {
    font-size: 14px;
    opacity: 0.9;
}

/* Register Specific Styles */

/* Progress Bar */
.register-progress {
    padding: 30px 60px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 14px;
}

.progress-step.active {
    color: var(--primary);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
}

.step-label {
    font-weight: 500;
}

/* Register Container */
.register-container {
    padding: 40px 60px 60px;
}

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

.register-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.register-header p {
    color: var(--gray-600);
    font-size: 16px;
}

/* Form Sections */
.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Plan Selection */
.plan-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.plan-card {
    position: relative;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.plan-card input[type="radio"]:checked + .plan-content {
    border-color: var(--primary);
}

.plan-card.recommended {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 20px;
}

.plan-price .currency {
    font-size: 20px;
    color: var(--gray-600);
    margin-right: 4px;
}

.plan-price .amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
}

.plan-price .period {
    font-size: 16px;
    color: var(--gray-600);
    margin-left: 4px;
}

.plan-features {
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray-700);
}

/* Terms Checkbox */
.terms-checkbox {
    margin-bottom: 24px;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-700);
}

.terms-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.terms-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

/* Trial Info */
.trial-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--success) + '10';
    border: 1px solid var(--success) + '30';
    border-radius: 10px;
    margin-bottom: 24px;
}

.trial-info strong {
    font-weight: 600;
    color: var(--gray-900);
}

.trial-info p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-box {
        grid-template-columns: 1fr;
    }
    
    .auth-right {
        display: none;
    }
    
    .auth-left {
        padding: 40px 20px;
    }
    
    .register-container {
        padding: 30px 20px;
    }
    
    .plan-selection {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}