:root {
    --primary: #1A237E;
    --primary-light: #8690EE;
    --accent: #FB6D00;
    --text-main: #454652;
    --text-light: #767683;
    --border: #C6C5D4;
    --bg: #FBF8FF;
    --white: #FFFFFF;
    --error: #D32F2F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background:
        radial-gradient(circle at top right, rgba(251, 109, 0, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(26, 35, 126, 0.08), transparent 32%),
        var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon { color: var(--accent); font-size: 24px; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-login {
    padding: 8px 20px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.btn-login:hover { background: var(--primary); color: var(--white); }

.btn-add-ad {
    padding: 8px 20px;
    background: var(--accent);
    color: var(--white);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.btn-add-ad:hover { background: #e55d00; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* Main Layout */
.main-container {
    display: flex;
    gap: 24px;
    padding: 24px;
    min-height: calc(100vh - 80px);
}

/* Branding Section */
.branding-section {
    flex: 1;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.93) 0%, rgba(0, 6, 102, 0.82) 100%), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') center/cover;
    color: var(--white);
    padding: 72px 56px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(26, 35, 126, 0.22);
}

.branding-content { position: relative; z-index: 2; max-width: 500px; }
.branding-section h1 { font-size: 36px; margin-bottom: 14px; line-height: 1.3; letter-spacing: -0.3px; }
.branding-desc { opacity: 0.92; margin-bottom: 40px; line-height: 1.7; font-size: 16px; }

.features-list { display: flex; flex-direction: column; gap: 32px; }
.feature-item { display: flex; gap: 16px; }
.feature-icon {
    width: 50px; height: 50px;
    background: rgba(251, 109, 0, 0.95);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(251, 109, 0, 0.28);
}
.feature-text h3 { font-size: 18px; margin-bottom: 4px; }
.feature-text p { opacity: 0.8; font-size: 14px; line-height: 1.6; }

/* Form Section */
.form-section {
    flex: 1;
    background: transparent;
    padding: 24px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(198, 197, 212, 0.8);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 24px 60px rgba(20, 33, 59, 0.08);
    backdrop-filter: blur(8px);
}
.form-header { margin-bottom: 32px; text-align: right; }
.form-header h2 { color: var(--primary); font-size: 28px; margin-bottom: 10px; }
.form-header p { color: var(--text-light); font-size: 15px; }

.form-group { margin-bottom: 22px; position: relative; }
.form-group { width: 100%; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-align: right;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid rgba(198, 197, 212, 0.95);
    border-radius: 14px;
    padding: 0 16px;
    transition: 0.25s ease;
    background: linear-gradient(180deg, #ffffff, #fbfbfd);
    min-height: 56px;
}
.input-wrapper:focus-within {
    border-color: rgba(26, 35, 126, 0.45);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.08);
}

.input-icon { color: var(--text-light); margin-left: 8px; font-size: 16px; transition: color 0.3s; }
.input-wrapper:focus-within .input-icon { color: var(--primary); }

.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 16px;
    color: var(--text-main);
    background: transparent;
}
.input-wrapper input::placeholder { color: #a7a4b6; }

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; min-width: 0; }

/* Phone Custom Input */
.phone-wrapper {
    padding: 0;
    position: relative;
    overflow: visible;
    gap: 0;
}
.phone-wrapper .input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 2;
    pointer-events: none;
}
.country-code {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-left: 1px solid rgba(198, 197, 212, 0.9);
    cursor: pointer;
    height: 100%;
    gap: 6px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    min-width: 92px;
    flex-shrink: 0;
}
.country-code i { font-size: 10px; color: var(--text-light); }
.code-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(198, 197, 212, 0.95);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(20, 33, 59, 0.14);
    z-index: 10;
    width: 220px;
    overflow: hidden;
}
.code-option {
    padding: 12px 14px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}
.code-option:hover { background: rgba(26, 35, 126, 0.06); color: var(--primary); }
.phone-input {
    flex: 1;
    min-width: 0;
    width: auto !important;
    padding: 14px 48px 14px 16px !important;
}

/* Password Toggle */
.toggle-password {
    background: none;
    border: none;
    color: var(--border);
    cursor: pointer;
    transition: 0.3s;
}
.toggle-password:hover { color: var(--primary); }

/* Custom Select (Industry) */
.custom-select { position: relative; }
.select-trigger {
    display: flex;
    align-items: center;
    border: 1px solid rgba(198, 197, 212, 0.95);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: 0.25s ease;
    background: linear-gradient(180deg, #ffffff, #fbfbfd);
    min-height: 56px;
}
.custom-select.open .select-trigger {
    border-color: rgba(26, 35, 126, 0.45);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.08);
}
.select-text { flex: 1; color: #a7a4b6; margin-right: 8px; font-weight: 500; }
.select-text.selected { color: var(--text-main); }
.arrow-icon { color: var(--text-light); transition: transform 0.3s; margin-right: 8px; }
.custom-select.open .arrow-icon { transform: rotate(180deg); }

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(198, 197, 212, 0.95);
    border-radius: 14px;
    margin-top: 8px;
    box-shadow: 0 18px 36px rgba(20, 33, 59, 0.14);
    z-index: 10;
    display: none;
    overflow: hidden;
}
.custom-select.open .select-options { display: block; }

.option {
    padding: 12px 16px;
    cursor: pointer;
    transition: 0.2s;
}
.option:hover { background: rgba(26, 35, 126, 0.06); }
.custom-option { color: var(--accent); font-weight: 700; background: rgba(251, 109, 0, 0.04); }
.custom-option i { margin-left: 8px; }

.custom-input-container { padding: 12px; border-top: 1px solid rgba(198, 197, 212, 0.9); background: #fff; }
.custom-input-container input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}
.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}
.checkbox-group label { font-size: 14px; cursor: pointer; line-height: 1.5; }

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--accent), #ff7d22);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 14px 24px rgba(251, 109, 0, 0.24);
}
.btn-submit:hover { transform: translateY(-1px); filter: brightness(1.02); }

.login-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
}
.login-link a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* Validation Errors */
.input-error { border-color: var(--error) !important; box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.08); }
.error-msg { color: var(--error); font-size: 12px; margin-top: 6px; display: block; }

/* Footer */
.footer { background: var(--primary); color: var(--white); padding: 64px 0 0; }
.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
}
.footer-col h3 { font-size: 20px; margin-bottom: 24px; }
.footer-col p { color: var(--primary-light); font-size: 14px; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--primary-light); text-decoration: none; transition: 0.3s; font-size: 16px; }
.footer-col ul li a:hover { color: var(--white); }

.contact-item { display: flex; gap: 8px; margin-bottom: 12px; color: var(--primary-light); font-size: 14px; }
.contact-item i { color: var(--accent); width: 16px; margin-top: 4px; }

.social-links { display: flex; gap: 16px; margin-top: 24px; }
.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}
.social-links a:hover { background: var(--accent); }

.footer-bottom {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: var(--primary-light);
    font-size: 14px;
}

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 1024px) {
    .main-container { flex-direction: column; }
    .branding-section { padding: 48px 24px; border-radius: 24px; }
    .form-section { padding: 0; }
    .form-container { max-width: none; margin-top: 24px; }
}

@media (max-width: 768px) {
    .nav-links, .header-actions { display: none; }
    .mobile-menu-btn { display: block; }
    .form-row { flex-direction: column; gap: 0; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .main-container { padding: 16px; gap: 16px; }
    .form-container { padding: 28px; border-radius: 24px; }
    .country-code { min-width: 84px; }
}

@media (max-width: 480px) {
    .footer-container { grid-template-columns: 1fr; }
    .branding-section h1 { font-size: 28px; }
    .form-container { padding: 22px; }
    .country-code { min-width: 78px; }
    .code-dropdown { width: 200px; }
}