﻿/* =========================================
   GLOBAL
========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}


/* =========================================
   RECRUITMENT TOP BANNER
========================================= */

.recruitment-hero {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 480px;
    background-image: url("../image/bg-malaysia-top.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}


/* =========================================
   HERO CONTAINER
========================================= */

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 30px 55px 30px 0px;
}


/* =========================================
   ASE LOGO
========================================= */

.hero-logo {
    position: relative;
    z-index: 3;
}

    .hero-logo img {
        display: block;
        width: 175px;
        height: auto;
    }


/* =========================================
   HERO TEXT
========================================= */

.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 65px;
    max-width: 570px;
}

    .hero-content h1 {
        margin: 0;
        color: #ffffff;
        font-size: 48px;
        line-height: 1.16;
        font-weight: 700;
        letter-spacing: -0.5px;
    }

.hero-line {
    width: 38px;
    height: 4px;
    margin-top: 28px;
    margin-bottom: 25px;
    background: #27c6d0;
    border-radius: 3px;
}

.hero-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 21px;
    line-height: 1.65;
    font-weight: 400;
}


/* =========================================
   RIGHT-SIDE DECORATION
========================================= */

.hero-decoration {
    position: absolute;
    z-index: 1;
    top: 80px;
    right: -20px;
    width: 58%;
    height: 300px;
    opacity: 0.85;
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    pointer-events: none;
}


/* =========================================
   MAIN LOGIN PAGE
========================================= */

.login-page {
    width: 100%;
    /*
       IMPORTANT:
       Fill the remaining viewport height
       after the hero.
    */
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}


/* =========================================
   MAIN CONTENT
========================================= */

.main-wrapper {
    /*
       This pushes the footer to the bottom
       when content is short.
    */
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 25px 30px;
    position: relative;
    z-index: 1;
}


/* =========================================
   OPTIONAL BLUE TOP AREA
========================================= */

.top-blue {
    height: 112px;
    background: #173d6b;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
}


/* =========================================
   LOGIN / REGISTER CARD
========================================= */

.account-card {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 530px;
    overflow: hidden;
}

.account-column {
    padding: 42px 55px;
    position: relative;
}

    .account-column:first-child {
        border-right: 1px solid #e1e5ea;
    }


/* =========================================
   FORM CARD
========================================= */

.form-card {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.05);
    display: grid;
    margin-bottom: 30px;
}


/* =========================================
   ICON
========================================= */

.top-icon {
    width: 78px;
    height: 78px;
    border: 1px solid #e0e7f0;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.person-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.person-head {
    width: 17px;
    height: 17px;
    border: 3px solid #2e64a1;
    border-radius: 50%;
    position: absolute;
    left: 11px;
    top: 1px;
}

.person-body {
    width: 34px;
    height: 17px;
    border: 3px solid #2e64a1;
    border-radius: 20px 20px 0 0;
    position: absolute;
    left: 3px;
    bottom: 2px;
}

.plus {
    position: absolute;
    right: -3px;
    bottom: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffffff;
    color: #2e64a1;
    font-size: 14px;
    line-height: 12px;
    font-weight: bold;
}


/* =========================================
   HEADINGS
========================================= */

.h1-title {
    color: #173d6b;
    font-size: 21px;
    font-weight: 700;
}

.account-title {
    text-align: center;
    margin: 0;
    color: #173d6b;
    font-size: 22px;
    font-weight: 700;
}

.account-subtitle {
    text-align: center;
    margin: 8px 0 35px;
    color: #777f89;
    font-size: 15px;
}


/* =========================================
   FORM
========================================= */

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #263f5f;
    font-size: 16px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    height: 43px;
    border: 1px solid #d9dee5;
    border-radius: 5px;
    padding: 0 16px;
    font-size: 14px;
    color: #333333;
    outline: none;
    background: #ffffff;
}

    .form-input::placeholder {
        color: #a6adb5;
    }

    .form-input:focus {
        border-color: #2e64a1;
        box-shadow: 0 0 0 2px rgba(46, 100, 161, 0.08);
    }


/* =========================================
   PASSWORD
========================================= */

.password-wrapper {
    position: relative;
}

    .password-wrapper .form-input {
        padding-right: 45px;
    }

.password-eye {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b828b;
    font-size: 19px;
}


/* =========================================
   CREATE ACCOUNT LINK BUTTON
========================================= */

.btn-create-account {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #164b8f;
    border: 2px solid #7089a7;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .btn-create-account:hover {
        background: #f5f8fb;
        color: #164b8f;
        border-color: #164b8f;
        text-decoration: none;
    }


/* =========================================
   REMEMBER / FORGOT
========================================= */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -5px;
    margin-bottom: 28px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #47566a;
    font-size: 14px;
}

    .remember input {
        width: 19px;
        height: 19px;
        margin: 0;
    }

.forgot-link {
    color: #2860a0;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }


/* =========================================
   BUTTONS
========================================= */

.btn {
    width: 100%;
    height: 52px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    border: 1px solid #164b8f;
    background: #164b8f;
    color: #ffffff;
}

    .btn-primary:hover {
        background: #123e76;
    }

.btn-outline {
    border: 2px solid #708aa8;
    background: #ffffff;
    color: #164b8f;
}

    .btn-outline:hover {
        background: #f4f8fc;
    }


/* =========================================
   OR CIRCLE
========================================= */

.or-circle {
    position: absolute;
    z-index: 5;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #f2f4f7;
    border: 1px solid #e3e7ec;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #234568;
    font-size: 16px;
    font-weight: 700;
}


/* =========================================
   BENEFITS
========================================= */

.benefits {
    margin-top: 65px;
}

.benefit-list {
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

    .benefit-list li {
        display: flex;
        align-items: center;
        margin-bottom: 27px;
        color: #424b57;
        font-size: 17px;
    }

.check {
    width: 23px;
    height: 23px;
    margin-right: 18px;
    color: #269aa2;
    font-size: 25px;
    font-weight: 700;
    line-height: 20px;
}


/* =========================================
   APPLY IN 3 STEPS
========================================= */

.steps-section {
    margin-top: 25px;
    padding: 27px 40px 35px;
    background: #eef8ff;
}

.steps-title {
    text-align: center;
    color: #173d6b;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 30px;
}

.steps {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 100px 1fr 100px 1fr;
    align-items: start;
}

.step {
    text-align: center;
}

.step-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 15px;
    background: #ffffff;
    border: 1px solid #dfe8f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2860a0;
    font-size: 39px;
}

.step-number {
    color: #173d6b;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-description {
    color: #6e7885;
    font-size: 16px;
    line-height: 1.5;
}

.step-arrow {
    text-align: center;
    color: #91a9c1;
    font-size: 38px;
    padding-top: 25px;
}


/* =========================================
   HELP SECTION
========================================= */

.help-section {
    min-height: 160px;
    display: flex;
    align-items: center;
    padding: 25px 50px;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}

.help-title-area {
    display: flex;
    align-items: center;
    width: 45%;
    border-right: 1px solid #e1e1e1;
}

.help-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #f3f8fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin-right: 25px;
}

.help-title {
    margin: 0 0 10px;
    color: #173d6b;
    font-size: 18px;
    font-weight: 700;
}

.help-text {
    margin: 0;
    color: #6d7783;
    font-size: 16px;
    line-height: 1.5;
    max-width: 270px;
}

.contact-area {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-left: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #f1f7fd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2860a0;
    font-size: 27px;
}

.contact-label {
    display: block;
    color: #173d6b;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 7px;
}

.contact-value {
    color: #4e6380;
    font-size: 16px;
}


/* =========================================
   BLANK SECTION
   -----------------------------------------
   Not required anymore because .main-wrapper
   uses flex: 1 to push footer down.
========================================= */

.blank-section {
    display: none;
}

.blank-fixed-section {
    display: none;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    min-height: 80px;
    flex-shrink: 0;
    background: #173d6b;
    display: flex;
    align-items: center;
    padding: 20px 45px;
    color: #ffffff;
}

.ase-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 48px;
    font-weight: 700;
}

    .ase-logo img {
        display: block;
        max-width: 175px;
        width: 100%;
        height: auto;
    }

.ase-symbol {
    font-size: 43px;
}

.footer-links {
    display: flex;
    gap: 17px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

    .footer-links a {
        color: #ffffff;
        font-size: 12px;
        text-decoration: none;
    }

.footer-divider {
    color: #ffffff;
    opacity: 0.7;
}

.copyright {
    width: 30%;
    text-align: right;
    font-size: 14px;
}


/* =========================================
   PASSWORD VALIDATION
========================================= */

.form-error {
    display: block !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    color: #d93025 !important;
    font-size: 15px !important;
    line-height: 1.4;
}


/* =========================================
   BUTTON CONTAINER
========================================= */

.button-container {
    margin-top: 30px !important;
    display: flex;
    gap: 10px;
    width: 40%;
}


/* =========================================
   RESPONSIVE - 992px
========================================= */

@media (max-width: 992px) {

    .recruitment-hero {
        height: 470px;
    }

    .hero-container {
        padding: 25px 40px;
    }

    .hero-logo img {
        width: 150px;
    }

    .hero-content {
        margin-top: 55px;
    }

        .hero-content h1 {
            font-size: 40px;
        }

        .hero-content p {
            font-size: 18px;
        }

    .hero-decoration {
        width: 55%;
        right: -60px;
    }

    .button-container {
        width: 50%;
    }
}


/* =========================================
   RESPONSIVE - 800px
========================================= */

@media (max-width: 800px) {

    .top-blue {
        height: 70px;
    }

    .main-wrapper {
        padding: 25px 15px 30px;
    }

    .account-card {
        grid-template-columns: 1fr;
    }

    .account-column {
        padding: 35px 25px;
    }

        .account-column:first-child {
            border-right: 0;
            border-bottom: 1px solid #e1e5ea;
        }

    .or-circle {
        top: 50%;
        left: 50%;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
        height: 35px;
    }

    .steps-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .help-section {
        flex-direction: column;
        align-items: stretch;
        padding: 30px 25px;
    }

    .help-title-area {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #e1e1e1;
        padding-bottom: 25px;
        margin-bottom: 25px;
    }

    .contact-area {
        padding-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 20px;
    }

    .ase-logo,
    .copyright {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .button-container {
        width: 100%;
    }
}


/* =========================================
   RESPONSIVE - 768px
========================================= */

@media (max-width: 768px) {

    .recruitment-hero {
        height: 420px;
    }

    .hero-container {
        padding: 22px 25px;
    }

    .hero-logo img {
        width: 130px;
    }

    .hero-content {
        margin-top: 55px;
        max-width: 480px;
    }

        .hero-content h1 {
            font-size: 34px;
        }

        .hero-content p {
            font-size: 17px;
            line-height: 1.5;
        }

    .hero-decoration {
        top: 100px;
        right: -130px;
        width: 75%;
        opacity: 0.55;
    }
}


/* =========================================
   RESPONSIVE - 480px
========================================= */

@media (max-width: 480px) {

    .recruitment-hero {
        height: 390px;
    }

    .hero-container {
        padding: 20px;
    }

    .hero-logo img {
        width: 115px;
    }

    .hero-content {
        margin-top: 45px;
    }

        .hero-content h1 {
            font-size: 29px;
            line-height: 1.2;
        }

    .hero-line {
        margin-top: 20px;
        margin-bottom: 18px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-decoration {
        top: 130px;
        right: -180px;
        width: 100%;
        opacity: 0.4;
    }

    .desktop-only {
        display: none;
    }

    .main-wrapper {
        padding: 25px 15px 25px;
    }

    .form-options {
        align-items: flex-start;
        gap: 10px;
    }

    .account-column {
        padding: 30px 18px;
    }

    .account-title {
        font-size: 19px;
    }

    .help-title-area {
        align-items: flex-start;
    }

    .help-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        flex-shrink: 0;
    }

    .contact-area {
        gap: 15px;
    }

    .contact-item {
        width: 100%;
    }

    .footer {
        min-height: auto;
        padding: 25px 15px;
    }

    .ase-logo img {
        max-width: 140px;
    }

    .copyright {
        font-size: 12px;
    }

    .button-container {
        width: 100%;
        flex-direction: column;
    }

        .button-container .btn {
            width: 100%;
        }
}

.btn-cancel {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-decoration: none;
}

    .btn-cancel:hover {
        text-decoration: none;
    }
