
/* ============================================
   OSHAS ATP APPLICATION PORTAL
   Registration / Authentication
============================================ */

:root {
    --atp-navy: #0f2240;
    --atp-gold: #e5b34f;
    --atp-text: #162947;
    --atp-muted: #68778c;
    --atp-border: #dce3ed;
    --atp-background: #f8fafd;
    --atp-white: #ffffff;
    --atp-error: #dc3545;
    --atp-success: #198754;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.atp-auth-body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--atp-white);
    color: var(--atp-text);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    text-decoration: none;
}

/* ============================================
   PAGE
============================================ */

.atp-register-page {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at 44% 48%,
            #ffffff 30%,
            #f9fbfe 100%
        );
    overflow: hidden;
}

/* ============================================
   HEADER
============================================ */

.atp-auth-header {
    position: relative;
    z-index: 5;
    width: 100%;
}

.atp-auth-header-inner {
    max-width: 1180px;
    height: 105px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.atp-auth-brand {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--atp-navy);
}

.atp-auth-brand img {
    display: block;
    width: 155px;
    max-height: 60px;
    object-fit: contain;
}

.atp-brand-divider {
    height: 35px;
    width: 1px;
    background: #cbd3e0;
}

.atp-brand-title {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.atp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #69788d;
    font-size: 13px;
    font-weight: 500;
    transition: color .2s;
}

.atp-back-link:hover {
    color: var(--atp-navy);
}

.atp-back-link svg {
    width: 17px;
    height: 17px;
}

/* ============================================
   MAIN LAYOUT
============================================ */

.atp-register-main {
    position: relative;
    z-index: 2;
}

.atp-register-container {
    width: calc(100% - 40px);
    max-width: 1180px;
    min-height: calc(100vh - 135px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.08fr);
    column-gap: 55px;
    align-items: center;
    padding: 20px 0 45px;
}

/* ============================================
   LEFT SECTION
============================================ */

.atp-register-intro {
    align-self: center;
    padding: 5px 0 30px;
}

.atp-gold-line {
    display: block;
    width: 50px;
    height: 5px;
    margin-bottom: 30px;
    background: var(--atp-gold);
    border-radius: 5px;
}

.atp-register-intro h1 {
    margin: 0;

    font-size: clamp(32px, 3.25vw, 44px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1.7px;
    color: var(--atp-navy);
}

.atp-register-intro h1 span {
    color: var(--atp-gold);
    font-weight: 500;
}

.atp-intro-description {
    max-width: 410px;
    margin: 20px 0 0;

    color: #657389;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
}

/* ============================================
   FEATURE ITEMS
============================================ */

.atp-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 55px;
    max-width: 455px;
}

.atp-feature {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    min-width: 0;
    text-align: center;
}

.atp-feature:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    height: 90px;
    width: 1px;
    background: #e3e7ef;
}

.atp-feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: #f1f4f9;

    display: flex;
    justify-content: center;
    align-items: center;
}

.atp-feature-icon svg {
    width: 33px;
    height: 33px;
    stroke: var(--atp-navy);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.atp-feature span {
    color: #34445d;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

/* ============================================
   VERTICAL DIVIDER
============================================ */

.atp-register-separator {
    width: 1px;
    height: 89%;
    background: #e5eaf1;
    align-self: center;
}

/* ============================================
   RIGHT SECTION
============================================ */

.atp-register-form-section {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.atp-register-card {
    width: 100%;
    max-width: 555px;

    padding: 31px 39px 28px;
    background: var(--atp-white);
    border: 1px solid var(--atp-border);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(15, 34, 64, .035);
}

.atp-card-heading {
    margin-bottom: 26px;
}

.atp-card-heading h2 {
    margin: 0 0 8px;
    color: var(--atp-navy);
    font-weight: 700;
    font-size: 23px;
    letter-spacing: -.6px;
    line-height: 1.3;
}

.atp-card-heading p {
    margin: 0;
    color: var(--atp-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

/* ============================================
   FORM
============================================ */

.atp-form-group {
    margin-bottom: 20px;
}

.atp-form-group label {
    display: block;
    margin-bottom: 7px;

    color: var(--atp-navy);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.atp-required {
    color: #d44a4a;
}

.atp-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.atp-form-input {
    display: block;

    width: 100%;
    height: 43px;

    padding: 0 14px 0 46px;

    border: 1px solid #d9e0e9;
    border-radius: 7px;

    outline: none;
    background: #fff;
    color: var(--atp-navy);

    font-size: 12.5px;
    font-weight: 400;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.atp-form-input::placeholder {
    color: #9aa5b5;
    opacity: 1;
}

.atp-form-input:hover {
    border-color: #b9c5d5;
}

.atp-form-input:focus {
    border-color: var(--atp-navy);
    box-shadow: 0 0 0 3px rgba(15, 34, 64, .08);
}

.atp-form-input.is-invalid {
    border-color: var(--atp-error);
}

.atp-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);

    width: 19px;
    height: 19px;

    fill: none;
    stroke: #738198;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
}

.atp-password-input {
    padding-right: 49px;
}

/* ============================================
   PASSWORD VISIBILITY
============================================ */

.atp-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 33px;
    height: 33px;

    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    color: #7c899b;
}

.atp-password-toggle:hover {
    color: var(--atp-navy);
    background: #f1f4f9;
}

.atp-password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.atp-password-toggle:focus-visible {
    outline: 2px solid var(--atp-navy);
    outline-offset: 2px;
}

/* ============================================
   FORM ERRORS
============================================ */

.atp-field-error {
    display: block;
    margin-top: 6px;
    color: var(--atp-error);
    font-size: 12px;
    line-height: 1.5;
}

.atp-alert {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.6;
}

.atp-alert ul {
    margin: 7px 0 0;
    padding-left: 19px;
}

.atp-alert-danger {
    color: #9b2733;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.atp-alert-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

/* ============================================
   SUBMIT BUTTON
============================================ */

.atp-register-button {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;

    width: 100%;
    min-height: 49px;

    margin-top: 29px;
    padding: 12px 22px;

    background: var(--atp-navy);
    color: white;

    border: 0;
    border-radius: 7px;

    cursor: pointer;
    font-size: 14px;
    font-weight: 600;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.atp-register-button:hover {
    background: #18345d;
    box-shadow: 0 7px 16px rgba(15, 34, 64, .15);
}

.atp-register-button:active {
    transform: translateY(1px);
}

.atp-register-button:focus-visible {
    outline: 3px solid var(--atp-gold);
    outline-offset: 3px;
}

.atp-register-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   LOGIN LINK
============================================ */

.atp-auth-login-footer {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 30px;
}

.atp-auth-login-footer p {
    margin: 0;
    white-space: nowrap;
    color: #798599;
    font-size: 12.5px;
}

.atp-auth-login-footer a {
    margin-left: 7px;
    color: var(--atp-navy);
    font-weight: 700;
}

.atp-auth-login-footer a:hover {
    text-decoration: underline;
}

.atp-footer-line {
    display: block;
    flex: 1;
    height: 1px;
    background: #e6eaf1;
}

/* ============================================
   BACKGROUND WAVES
============================================ */

.atp-auth-waves {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 170px;

    z-index: 0;
    pointer-events: none;
}

.atp-auth-waves svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================
   TABLET
============================================ */

@media (max-width: 1100px) {
    .atp-auth-header-inner,
    .atp-register-container {
        max-width: 960px;
    }

    .atp-register-container {
        column-gap: 32px;
    }

    .atp-register-card {
        padding: 30px;
    }

    .atp-register-intro h1 {
        font-size: 35px;
    }

    .atp-intro-description {
        font-size: 15px;
    }
}

/* ============================================
   SMALL TABLET / MOBILE
============================================ */

@media (max-width: 850px) {
    .atp-auth-header-inner {
        height: 85px;
    }

    .atp-register-container {
        grid-template-columns: 1fr;
        max-width: 570px;
        row-gap: 30px;
        padding: 25px 0 70px;
    }

    .atp-register-separator {
        display: none;
    }

    .atp-register-intro {
        text-align: center;
        padding-bottom: 0;
    }

    .atp-gold-line {
        margin: 0 auto 20px;
    }

    .atp-register-intro h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .atp-intro-description {
        margin: 16px auto 0;
    }

    .atp-features {
        margin: 25px auto 0;
    }

    .atp-feature:not(:last-child)::after {
        height: 68px;
    }
}

@media (max-width: 580px) {
    .atp-auth-header-inner {
        padding: 0 18px;
        height: 76px;
    }

    .atp-auth-brand {
        gap: 12px;
    }

    .atp-auth-brand img {
        width: 105px;
    }

    .atp-brand-divider {
        height: 25px;
    }

    .atp-brand-title {
        font-size: 10px;
        white-space: normal;
    }

    .atp-back-link span {
        display: none;
    }

    .atp-register-container {
        width: calc(100% - 28px);
        padding-top: 18px;
    }

    .atp-register-intro h1 {
        font-size: 29px;
    }

    .atp-intro-description {
        font-size: 13px;
    }

    .atp-feature-icon {
        width: 46px;
        height: 46px;
    }

    .atp-feature-icon svg {
        width: 27px;
        height: 27px;
    }

    .atp-feature span {
        font-size: 11px;
    }

    .atp-register-card {
        padding: 27px 20px;
        border-radius: 15px;
    }

    .atp-card-heading h2 {
        font-size: 20px;
    }

    .atp-form-group {
        margin-bottom: 18px;
    }

    .atp-auth-login-footer {
        gap: 8px;
    }

    .atp-auth-login-footer p {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atp-register-page *,
    .atp-register-page *::before,
    .atp-register-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}



/* ============================================
   ATP EMAIL VERIFICATION PAGE
============================================ */

.atp-verify-main {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: calc(100vh - 120px);
    padding: 40px 20px 90px;
}

.atp-verify-card {
    width: 100%;
    max-width: 550px;

    padding: 45px 42px;
    background: white;

    border: 1px solid #dce3ed;
    border-radius: 20px;

    box-shadow: 0 12px 35px rgba(15, 34, 64, .045);

    text-align: center;
}

.atp-verify-icon {
    width: 82px;
    height: 82px;

    margin: 0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f5fa;
    border-radius: 20px;
}

.atp-verify-icon svg {
    width: 42px;
    height: 42px;

    stroke: #0f2240;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.atp-verify-gold-line {
    display: block;
    width: 45px;
    height: 4px;

    margin: 0 auto 20px;

    border-radius: 5px;
    background: #e5b34f;
}

.atp-verify-card h1 {
    margin: 0 0 18px;

    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.5px;

    color: #0f2240;
}

.atp-verify-description {
    font-size: 13px;
    color: #68778c;
    line-height: 1.8;
    margin: 0 0 14px;
}

.atp-verification-notice {
    margin: 28px 0 25px;
    padding: 18px;

    background: #f4f7fc;
    border-radius: 8px;
    border-left: 3px solid #e5b34f;

    text-align: left;
}

.atp-verification-notice strong {
    font-size: 13px;
    color: #0f2240;
}

.atp-verification-notice p {
    font-size: 12px;
    line-height: 1.8;
    color: #68778c;
    margin: 8px 0 0;
}

.atp-resend-form {
    text-align: left;
}

.atp-resend-form .atp-register-button {
    margin-top: 24px;
}

.atp-verify-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e6eaf1;
}

.atp-verify-footer p {
    margin: 0;
    font-size: 12px;
    color: #68778c;
}

.atp-verify-footer a {
    color: #0f2240;
    font-weight: 700;
    margin-left: 5px;
}

.atp-verify-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 580px) {
    .atp-verify-main {
        padding: 25px 14px 80px;
    }

    .atp-verify-card {
        padding: 30px 20px;
        border-radius: 14px;
    }

    .atp-verify-card h1 {
        font-size: 21px;
    }
}
