/* Modern Split-Screen Signup */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    overflow-x: hidden;
}

.signup-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding: 10px;
    background: white;
}

/* Left Side - Form */
.signup-left {
    background: white;
    padding: 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: center;
}

.signup-logo {
    text-align: center;
    margin-bottom: 32px;
}

.signup-logo img {
    height: 48px;
    width: auto;
}

.signup-step {
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.signup-step.hidden {
    display: none;
}

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

.step-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.step-header p {
    font-size: 16px;
    color: #666;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
    background: white;
}

.form-group input[type="password"] {
    padding-right: 48px;
}

.form-group input:focus {
    border-color: #ff6154;
    box-shadow: 0 0 0 3px rgba(255, 97, 84, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 38px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    user-select: none;
    padding: 4px;
}

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

.password-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}

.error-message {
    display: none;
    margin-top: 10px;
}

.error-message.show {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #dc2626;
    animation: fadeIn 0.2s ease;
}

.error-message.show::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hint-text {
    font-size: 13px;
    color: #888;
    margin-top: -4px;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0;
    margin-bottom: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.password-strength.active {
    margin-top: 12px;
    margin-bottom: 8px;
    max-height: 50px;
    opacity: 1;
}

.strength-bars {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

/* Strength levels */
.password-strength.very-weak .strength-bar:nth-child(1) {
    background: #ef4444;
}

.password-strength.weak .strength-bar:nth-child(1),
.password-strength.weak .strength-bar:nth-child(2) {
    background: #f59e0b;
}

.password-strength.medium .strength-bar:nth-child(1),
.password-strength.medium .strength-bar:nth-child(2),
.password-strength.medium .strength-bar:nth-child(3) {
    background: #3b82f6;
}

.password-strength.strong .strength-bar {
    background: #10b981;
}

.password-strength.very-weak .strength-text {
    color: #ef4444;
}

.password-strength.weak .strength-text {
    color: #f59e0b;
}

.password-strength.medium .strength-text {
    color: #3b82f6;
}

.password-strength.strong .strength-text {
    color: #10b981;
}

/* Password Requirements */
.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 16px;
    padding-right: 16px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.password-requirements.visible {
    margin-top: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
    max-height: 250px;
    opacity: 1;
    transform: translateY(0);
}

.requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
    transition: color 0.2s;
}

.req-icon {
    min-width: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.req-icon svg {
    width: 18px;
    height: 18px;
    stroke: #d1d5db;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s, transform 0.2s;
}

.requirement.met {
    color: #10b981;
}

.requirement.met .req-icon svg {
    stroke: #10b981;
    transform: scale(1.1);
}

.forgot-link {
    text-align: right;
    margin-top: -4px;
}

.forgot-link a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link a:hover {
    color: #ff6154;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6154 0%, #ff4a3d 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 97, 84, 0.3);
}

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

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.button-group {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin-top: 8px;
}

.back-btn {
    padding: 14px 24px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    border-color: #ff6154;
    color: #ff6154;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 16px;
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.google-btn:hover {
    border-color: #ccc;
    background: #fafafa;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: #ff6154;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.auth-footer a:hover {
    opacity: 0.8;
}

.alert-message {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.alert-message.show {
    display: block;
}

/* Right Side - Hero */
.signup-right {
    background: linear-gradient(135deg, #ff6154 0%, #ff4a3d 100%);
    padding: 64px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.signup-right::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.signup-right::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 520px;
    position: relative;
    z-index: 1;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-badge i {
    font-size: 16px;
}

.hero-content h2 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content h2 .transform-text {
    font-family: auto;
    font-style: italic;
    font-weight: 100;
    font-size: 68px;
}

.hero-subtitle {
    font-size: 24px;
    opacity: 0.95;
    margin-bottom: 48px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 48px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, background 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon i {
    font-size: 22px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .signup-container {
        grid-template-columns: 1fr;
    }

    .signup-right {
        display: none;
    }

    .signup-left {
        padding: 32px 24px;
    }

    .step-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .signup-left {
        padding: 24px 20px;
    }

    .signup-logo {
        margin-bottom: 24px;
    }

    .signup-logo img {
        height: 40px;
    }

    .step-header {
        margin-bottom: 24px;
    }

    .step-header h1 {
        font-size: 24px;
    }

    .step-header p {
        font-size: 15px;
    }

    .signup-form {
        gap: 20px;
    }

    .form-group input,
    .submit-btn,
    .google-btn,
    .back-btn {
        padding: 12px 14px;
    }

    .form-group input[type="password"] {
        padding-right: 48px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .back-btn {
        order: 2;
        border-color: transparent;
        color: #666;
        justify-content: center;
    }

    .submit-btn {
        order: 1;
    }

    .password-requirements {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .password-requirements.visible {
        padding: 14px;
    }

    .requirement {
        font-size: 13px;
    }

    .req-icon {
        min-width: 16px;
        width: 16px;
        height: 16px;
    }

    .req-icon svg {
        width: 16px;
        height: 16px;
    }
}
