@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap");
@import url("./lineicons.css");

:root {
    --angaza-primary: #063544;
    --angaza-secondary: #082f3a;
    --angaza-deep: #041f29;
    --angaza-gold: #d79a2b;
    --angaza-gold-dark: #b97813;
    --angaza-soft: #f7f9fb;
    --angaza-text: #102a43;
    --angaza-muted: #6b7280;
    --angaza-border: #e5e7eb;
    --angaza-shadow: 0 24px 70px rgba(4, 31, 41, 0.18);
    --angaza-radius-lg: 30px;
    --angaza-radius-md: 18px;
}

.fa,
.fas,
.far,
.fab {
    font-family: "lineicons" !important;
    font-style: normal;
    font-weight: normal !important;
    line-height: 1;
}

.fa::before,
.fas::before,
.far::before,
.fab::before {
    font-family: "lineicons" !important;
    display: inline-block;
}

.fa-shield-alt::before { content: "\eab2"; }
.fa-check-circle::before { content: "\ead2"; }
.fa-envelope::before { content: "\eb5c"; }
.fa-lock::before { content: "\eabd"; }
.fa-arrow-right::before { content: "\eb19"; }
.fa-user::before { content: "\ea08"; }
.fa-phone::before { content: "\eb58"; }
.fa-building::before { content: "\ea85"; }
.fa-home::before { content: "\ea81"; }
.fa-eye::before { content: "\eacc"; }
.fa-info-circle::before { content: "\eac3"; }

.angaza-auth-body {
    min-height: 100vh;
    margin: 0;
    color: var(--angaza-text);
    background:
        radial-gradient(circle at top left, rgba(215, 154, 43, 0.2), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(6, 53, 68, 0.28), transparent 32rem),
        linear-gradient(135deg, #f7f9fb 0%, #eef4f6 44%, #ffffff 100%);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.angaza-auth-shell,
.angaza-company-page {
    min-height: 100vh;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

.angaza-auth-shell::before,
.angaza-company-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.52;
    background-image:
        linear-gradient(rgba(6, 53, 68, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 53, 68, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.angaza-auth-container,
.angaza-company-wrap {
    width: min(1180px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.angaza-auth-header,
.angaza-company-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 42px rgba(4, 31, 41, 0.08);
    backdrop-filter: blur(18px);
}

.angaza-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--angaza-primary);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.angaza-auth-brand:hover,
.angaza-auth-brand:focus {
    color: var(--angaza-primary);
    text-decoration: none;
}

.angaza-auth-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(4, 31, 41, 0.1);
}

.angaza-auth-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.angaza-auth-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--angaza-primary);
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(6, 53, 68, 0.12);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.angaza-auth-nav a:hover,
.angaza-auth-nav a:focus {
    color: #fff;
    background: var(--angaza-primary);
    border-color: var(--angaza-primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.angaza-auth-nav .is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--angaza-gold), var(--angaza-gold-dark));
}

.angaza-auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
    gap: 24px;
    align-items: stretch;
}

.angaza-auth-hero,
.angaza-company-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(30px, 5vw, 58px);
    border-radius: var(--angaza-radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgba(215, 154, 43, 0.32), transparent 18rem),
        radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.12), transparent 20rem),
        linear-gradient(145deg, var(--angaza-primary), var(--angaza-deep));
    box-shadow: var(--angaza-shadow);
}

.angaza-auth-hero::before,
.angaza-company-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 58px 58px;
}

.angaza-auth-hero::after,
.angaza-company-hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 58px solid rgba(215, 154, 43, 0.13);
}

.angaza-auth-hero > *,
.angaza-company-hero > * {
    position: relative;
    z-index: 1;
}

.angaza-auth-eyebrow,
.angaza-company-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 22px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #ffe5ad;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.17);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.angaza-auth-title,
.angaza-company-title {
    margin: 0;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.2rem, 4.6vw, 4.75rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

.angaza-auth-title span,
.angaza-company-title span {
    color: var(--angaza-gold);
}

.angaza-auth-copy,
.angaza-company-copy {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.45vw, 1.14rem);
    line-height: 1.75;
}

.angaza-auth-benefits {
    display: grid;
    gap: 12px;
    margin-top: 34px;
    padding: 0;
    list-style: none;
}

.angaza-auth-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 600;
}

.angaza-auth-benefits i {
    color: var(--angaza-gold);
}

.angaza-auth-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.angaza-auth-stat {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.angaza-auth-stat strong {
    display: block;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
}

.angaza-auth-stat span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
}

.angaza-auth-card,
.angaza-company-card {
    align-self: center;
    width: 100%;
    padding: clamp(26px, 4vw, 42px);
    border-radius: var(--angaza-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--angaza-shadow);
    backdrop-filter: blur(18px);
}

.angaza-auth-card-header {
    margin-bottom: 26px;
}

.angaza-auth-card-header img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(4, 31, 41, 0.12);
}

.angaza-auth-card h1,
.angaza-auth-card h2,
.angaza-company-card h2 {
    margin: 0;
    color: var(--angaza-primary);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.angaza-auth-card p,
.angaza-company-card p {
    color: var(--angaza-muted);
}

.angaza-auth-form .form-row {
    margin-right: -8px;
    margin-left: -8px;
}

.angaza-auth-form .form-row > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.angaza-auth-form .form-group,
.angaza-company-form .form-group {
    margin-bottom: 18px;
}

.angaza-auth-form label,
.angaza-company-form label {
    margin-bottom: 8px;
    color: var(--angaza-text);
    font-size: 0.92rem;
    font-weight: 800;
}

.angaza-input-wrap {
    position: relative;
}

.angaza-input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--angaza-gold-dark);
    font-size: 0.98rem;
    pointer-events: none;
}

.angaza-input-wrap .form-control {
    padding-left: 47px;
}

.angaza-auth-form .form-control,
.angaza-company-form .form-control,
.angaza-company-form select.form-control,
.angaza-company-form textarea.form-control {
    min-height: 52px;
    width: 100%;
    border: 1px solid var(--angaza-border);
    border-radius: 16px;
    color: var(--angaza-text);
    background-color: #fff;
    box-shadow: 0 10px 28px rgba(4, 31, 41, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.angaza-company-form textarea.form-control {
    min-height: 142px;
}

.angaza-auth-form .form-control:focus,
.angaza-company-form .form-control:focus,
.angaza-company-form select.form-control:focus,
.angaza-company-form textarea.form-control:focus {
    border-color: rgba(215, 154, 43, 0.78);
    box-shadow: 0 0 0 0.2rem rgba(215, 154, 43, 0.18), 0 14px 32px rgba(4, 31, 41, 0.08);
    outline: 0;
}

.angaza-auth-form .form-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 20px;
}

.angaza-auth-form .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.angaza-auth-form .form-check-label {
    margin: 0;
    color: var(--angaza-muted);
    font-weight: 700;
}

.angaza-gold-btn,
.btn-register,
.btn-submit {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--angaza-gold), var(--angaza-gold-dark));
    box-shadow: 0 18px 38px rgba(199, 126, 23, 0.28);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.angaza-gold-btn:hover,
.angaza-gold-btn:focus,
.btn-register:hover,
.btn-register:focus,
.btn-submit:hover,
.btn-submit:focus {
    color: #fff !important;
    filter: saturate(1.08);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(199, 126, 23, 0.34);
}

.angaza-auth-links {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    text-align: center;
}

.angaza-auth-links a,
.angaza-company-login-link a {
    color: var(--angaza-primary);
    font-weight: 800;
    text-decoration: none;
}

.angaza-auth-links a:hover,
.angaza-auth-links a:focus,
.angaza-company-login-link a:hover,
.angaza-company-login-link a:focus {
    color: var(--angaza-gold-dark);
    text-decoration: none;
}

.angaza-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 20px;
    padding: 14px 16px;
    border: 1px solid rgba(6, 53, 68, 0.1);
    border-radius: 16px;
    background: rgba(247, 249, 251, 0.92);
}

.angaza-terms-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--angaza-gold-dark);
    flex: 0 0 18px;
}

.angaza-terms-check label {
    margin: 0;
    color: var(--angaza-muted);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.55;
}

.angaza-terms-link {
    color: var(--angaza-primary);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(215, 154, 43, 0.55);
}

.angaza-terms-link:hover,
.angaza-terms-link:focus {
    color: var(--angaza-gold-dark);
    text-decoration: none;
}

.angaza-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.angaza-terms-modal.is-open {
    display: flex;
}

.angaza-terms-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 31, 41, 0.72);
    backdrop-filter: blur(8px);
}

.angaza-terms-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min(84dvh, 720px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at top right, rgba(215, 154, 43, 0.16), transparent 16rem),
        #ffffff;
    box-shadow: 0 30px 90px rgba(4, 31, 41, 0.34);
    word-break: normal;
    overflow-wrap: anywhere;
}

.angaza-terms-dialog h2 {
    margin: 0 0 12px;
    color: var(--angaza-primary);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
}

.angaza-terms-dialog p,
.angaza-terms-dialog li {
    color: var(--angaza-muted);
    line-height: 1.7;
}

.angaza-terms-dialog ul {
    padding-left: 1.25rem;
}

.angaza-terms-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(6, 53, 68, 0.12);
    border-radius: 999px;
    color: var(--angaza-primary);
    background: #fff;
    font-weight: 800;
}

.angaza-terms-close:hover,
.angaza-terms-close:focus {
    color: #fff;
    background: var(--angaza-primary);
}

.angaza-terms-lock {
    overflow: hidden;
}

.angaza-company-page {
    min-height: auto;
    padding: 28px 24px 42px;
    background:
        radial-gradient(circle at top left, rgba(215, 154, 43, 0.16), transparent 26rem),
        linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
}

.angaza-company-standalone {
    background:
        radial-gradient(circle at top left, rgba(215, 154, 43, 0.2), transparent 26rem),
        linear-gradient(135deg, #f7f9fb 0%, #edf5f7 100%);
}

.angaza-company-hero {
    min-height: auto;
    margin-bottom: 24px;
    padding: clamp(30px, 5vw, 54px);
}

.angaza-company-title {
    max-width: 780px;
    font-size: clamp(2.1rem, 4.4vw, 4.35rem);
}

.angaza-company-card {
    align-self: auto;
    padding: clamp(20px, 4vw, 38px);
}

.angaza-company-form {
    display: grid;
    gap: 22px;
}

.angaza-company-form .row {
    row-gap: 2px;
}

.angaza-section-title,
.angaza-company-form h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--angaza-primary);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0;
}

.angaza-section-title i,
.angaza-company-form h4 i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--angaza-gold), var(--angaza-gold-dark));
    font-size: 1rem;
    box-shadow: 0 12px 28px rgba(199, 126, 23, 0.22);
}

.angaza-form-section {
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
    box-shadow: 0 18px 42px rgba(4, 31, 41, 0.06);
}

.angaza-form-section hr,
.angaza-company-form hr {
    margin: 0 0 22px;
    border: 0;
    border-top: 1px solid var(--angaza-border);
    opacity: 1;
}

.angaza-file-note {
    margin: 8px 0 0;
    color: var(--angaza-muted);
    font-size: 0.9rem;
}

.angaza-company-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.angaza-company-actions .btn-submit {
    width: min(320px, 100%);
}

.angaza-company-login-link {
    margin: 0;
    color: var(--angaza-muted);
    font-weight: 600;
    text-align: center;
}

.angaza-company-form .btn-secondary,
#add-membership-btn {
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(6, 53, 68, 0.16);
    color: var(--angaza-primary);
    background: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(4, 31, 41, 0.07);
}

.angaza-company-form .btn-secondary:hover,
.angaza-company-form .btn-secondary:focus,
#add-membership-btn:hover,
#add-membership-btn:focus {
    color: #fff;
    background: var(--angaza-primary);
}

.angaza-company-form .select2-container {
    width: 100% !important;
}

.angaza-company-form .select2-container--default .select2-selection--single {
    min-height: 52px;
    display: flex;
    align-items: center;
    border: 1px solid var(--angaza-border);
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 10px 28px rgba(4, 31, 41, 0.04);
}

.angaza-company-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding-left: 16px;
    color: var(--angaza-text);
    line-height: normal;
}

.angaza-company-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

.angaza-company-form .membership-item {
    padding: 18px 0 0;
    border-top: 1px dashed rgba(6, 53, 68, 0.16);
}

.angaza-company-form .membership-item:first-child {
    padding-top: 0;
    border-top: 0;
}

@media (max-width: 991.98px) {
    .angaza-auth-layout {
        grid-template-columns: 1fr;
    }

    .angaza-auth-hero {
        min-height: auto;
    }

    .angaza-auth-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .angaza-auth-shell,
    .angaza-company-page {
        padding: 14px;
    }

    .angaza-auth-header,
    .angaza-company-mini-header {
        align-items: stretch;
        flex-direction: column;
        border-radius: 20px;
    }

    .angaza-auth-brand {
        justify-content: center;
    }

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

    .angaza-auth-nav a {
        flex: 1 1 auto;
        min-width: 120px;
    }

    .angaza-auth-hero,
    .angaza-company-hero,
    .angaza-auth-card,
    .angaza-company-card,
    .angaza-form-section {
        border-radius: 22px;
    }

    .angaza-auth-title,
    .angaza-company-title {
        line-height: 1.04;
    }

    .angaza-auth-stats {
        grid-template-columns: 1fr;
    }

    .angaza-company-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .angaza-company-actions .btn-submit {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .angaza-auth-card,
    .angaza-company-card,
    .angaza-form-section,
    .angaza-auth-hero,
    .angaza-company-hero {
        padding: 22px;
    }

    .angaza-auth-card-header img {
        width: 54px;
        height: 54px;
    }

    .angaza-auth-form .form-control,
    .angaza-company-form .form-control,
    .angaza-company-form select.form-control,
    .angaza-company-form textarea.form-control {
        font-size: 16px;
    }

    .angaza-terms-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .angaza-terms-dialog {
        width: 100%;
        max-height: calc(100dvh - 20px);
        padding: 24px 20px 20px;
        border-radius: 22px;
    }

    .angaza-terms-dialog .angaza-gold-btn,
    .angaza-terms-dialog .angaza-public-btn,
    .angaza-terms-dialog .btn {
        width: 100%;
    }
}
