@import url('theme.css');

/* =============================================
   SIGNUP PAGE - Matching Login Design
   ============================================= */

/* General Styling */
html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--bg-body);
    height: 100%;
    overflow-x: hidden;
}

/* Page Layout */
.signup-page {
    display: flex;
    min-height: 100vh;
    background: var(--bg-body);
}

/* =============================================
   LEFT PANEL - Branding
   ============================================= */
.signup-left {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(165deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 40px;
}

.signup-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(8, 145, 178, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: slowPulse 15s ease-in-out infinite;
}

@keyframes slowPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 0.8; }
}

/* Left Content */
.signup-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 420px;
}

/* Globe Icon */
.signup-left-content::before {
    content: '\f0ac';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 4rem;
    color: var(--color-primary-light);
    display: block;
    margin-bottom: 25px;
    text-shadow: 0 0 40px rgba(34, 211, 238, 0.5);
}

.signup-left-content h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.signup-left-content > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 35px 0;
}

/* Feature Items */
.signup-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.25);
}

.feature-item i {
    font-size: 1.3rem;
    color: var(--color-primary-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 145, 178, 0.3);
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.feature-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* Stats */
.signup-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

.stat-number {
    display: block;
    color: var(--color-primary-light);
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Decorative Elements */
.signup-left-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.15) 0%, transparent 70%);
    animation: float1 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
    animation: float2 25s ease-in-out infinite;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.08); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.1); }
}

/* =============================================
   RIGHT PANEL - Form
   ============================================= */
.signup-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: var(--bg-body);
    overflow-y: auto;
}

.signup-form-container {
    width: 100%;
    max-width: 520px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 35px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Logo & Header */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.signup-logo {
    width: 100px;
    margin-bottom: 15px;
}

.logo-container h2 {
    color: var(--color-navy);
    margin: 10px 0;
    font-size: 1.5rem;
}

.signup-instructions {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 0;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert i {
    font-size: 18px;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Form Styling */
.signup-form {
    margin-bottom: 20px;
}

/* Type Selector */
.type-selector {
    margin-bottom: 20px;
}

.type-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.type-options {
    display: flex;
    gap: 12px;
}

.type-option {
    flex: 1;
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.type-btn i {
    font-size: 16px;
}

.type-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.type-btn.active {
    background: var(--color-primary-dim);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Form Rows */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    margin-bottom: 16px;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.form-group label i {
    margin-right: 6px;
    color: var(--color-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px var(--color-primary-dim);
}

.form-group input::placeholder {
    color: var(--color-text-light);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

/* Terms Text */
.terms-text {
    font-size: 11px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.terms-text i {
    color: var(--color-primary);
    margin-right: 5px;
}

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

.terms-text a:hover {
    text-decoration: underline;
}

/* Submit Button */
.signup-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.signup-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--color-primary-glow);
}

/* Social Login */
.social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--color-text-light);
    font-size: 13px;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.social-login-divider span {
    padding: 0 15px;
}

.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.facebook-btn { background: #1877f2; }
.google-btn { background: #ea4335; }
.linkedin-btn { background: #0a66c2; }

/* Login Link */
.login-link {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
}

.login-link a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Footer */
.signup-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 55%;
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    text-align: center;
    font-size: 11px;
    z-index: 10;
}

.signup-footer p {
    margin: 0;
    color: var(--color-text-muted);
}

.signup-footer a {
    color: var(--color-primary);
    text-decoration: none;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
    .signup-left {
        flex: 0 0 40%;
        padding: 30px;
    }
    
    .signup-left-content h1 {
        font-size: 1.8rem;
    }
    
    .signup-form-container {
        padding: 30px;
    }
}

@media (max-width: 900px) {
    .signup-page {
        flex-direction: column;
    }
    
    .signup-left {
        display: none;
    }
    
    .signup-right {
        padding: 20px;
        min-height: 100vh;
    }
    
    .signup-form-container {
        max-width: 100%;
        padding: 25px 20px;
    }
    
    .signup-footer {
        position: relative;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .type-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .signup-form-container {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }
    
    .logo-container h2 {
        font-size: 1.3rem;
    }
    
    .signup-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .signup-right {
        padding: 15px 10px;
    }
    
    .signup-form-container {
        padding: 18px 14px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .signup-btn {
        padding: 11px 16px;
        font-size: 13px;
    }
}
