/* Shaghla main stylesheet */

:root {
    --blue: #0b4d9b;
    --blue-dark: #083a75;
    --blue-mid: #1a5fad;
    --green: #03eda5;
    --green-dark: #02c98e;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.12);
    --text-muted: rgba(255, 255, 255, 0.62);
    --danger: #ff6b6b;
    --success: #03eda5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
    background: var(--blue-dark);
    color: var(--white);
    direction: rtl;
}

body.auth-body {
    display: flex;
    flex-direction: column;
}

body.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

a {
    color: var(--green);
    text-decoration: none;
}

a:hover {
    color: var(--green-dark);
}

.auth-header {
    position: relative;
    z-index: 2;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 58, 117, 0.85);
    backdrop-filter: blur(12px);
}

.auth-header img {
    height: 40px;
    width: auto;
}

.auth-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.auth-card.wide {
    max-width: 540px;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.2;
}

.auth-subtitle {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--white) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-family: inherit;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--green) !important;
    box-shadow: 0 0 0 3px rgba(3, 237, 165, 0.2) !important;
    color: var(--white) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-select option {
    color: #111;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.invalid-feedback {
    display: block;
    color: #ff8a8a;
    font-size: 0.82rem;
    margin-top: 4px;
}

.is-invalid {
    border-color: var(--danger) !important;
}

.password-toggle-wrap {
    position: relative;
}

.password-toggle-wrap .form-control {
    padding-left: 44px !important;
}

.password-toggle-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    padding: 4px;
    cursor: pointer;
    line-height: 0;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    color: var(--green);
    outline: none;
}

.password-toggle-btn .icon-eye-off {
    display: none;
}

.password-toggle-btn.is-visible .icon-eye {
    display: none;
}

.password-toggle-btn.is-visible .icon-eye-off {
    display: block;
}

.business-logo-fallback {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(3, 237, 165, 0.12);
    border: 1px solid rgba(3, 237, 165, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--green);
    flex-shrink: 0;
}

.btn-shaghla {
    background: var(--green);
    color: var(--blue-dark);
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-weight: 700;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-shaghla:hover {
    background: var(--green-dark);
    color: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(3, 237, 165, 0.3);
}

.btn-outline-shaghla {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    font-family: inherit;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-outline-shaghla:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.role-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px;
}

.role-toggle a {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: 44px;
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}

.role-toggle a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.role-toggle a.active.seeker {
    background: var(--green);
    color: var(--blue-dark);
}

.role-toggle a.active.employer {
    background: var(--blue-mid);
    color: var(--white);
}

.auth-links {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-links p {
    margin: 8px 0;
}

.alert-shaghla {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-shaghla.success {
    background: rgba(3, 237, 165, 0.12);
    border-color: rgba(3, 237, 165, 0.3);
    color: var(--green);
}

.alert-shaghla.error {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff8a8a;
}

.alert-shaghla.info {
    background: rgba(26, 95, 173, 0.25);
    border-color: rgba(26, 95, 173, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.auth-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid var(--border);
}

.mb-3 {
    margin-bottom: 1rem;
}

.static-page-body {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.85;
}

.static-page-body p {
    margin: 0 0 14px;
}

.static-page-body h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    margin: 22px 0 10px;
}

.d-none {
    display: none !important;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 28px 20px;
    }
}
