/* =========================================================
   ROCKWAVE HR PLATFORM
   Login Page Styles
   ========================================================= */


/* =========================================================
   1. Theme variables
   ========================================================= */

:root {
    /* Rockwave branding */
    --company-primary: #002581;
    --company-primary-dark: #001A5A;
    --company-accent: #1BA7FD;

    /* Neutral interface colours */
    --page-background: #F7F8FA;
    --card-background: #FFFFFF;
    --soft-background: #F2F3F5;
    --border-color: #E2E6EC;

    /* Text */
    --text-primary: #20252E;
    --text-secondary: #667085;
    --text-muted: #98A2B3;

    /* General */
    --white: #FFFFFF;
    --shadow:
        0 24px 65px rgba(15, 23, 42, 0.10);

    --small-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);

    --font-primary:
        "Inter",
        Arial,
        sans-serif;

    --font-heading:
        "Merriweather",
        Georgia,
        serif;
}


/* =========================================================
   2. Reset
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--page-background);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   3. Main page layout
   ========================================================= */

.login-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(420px, 48%)
        minmax(480px, 52%);
}


/* =========================================================
   4. Left showcase
   ========================================================= */

.login-showcase {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 54px 64px;
    display: flex;
    background:
        linear-gradient(
            145deg,
            rgba(0, 37, 129, 0.97),
            rgba(0, 26, 90, 0.98)
        );
}

.login-showcase::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    top: -180px;
    right: -180px;
    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, 0.04);
}

.login-showcase::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    background: rgba(27, 167, 253, 0.09);
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(27, 167, 253, 0.18),
            transparent 32%
        );
}

.showcase-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.showcase-brand {
    margin-bottom: auto;
}

.showcase-logo {
    width: 170px;
    height: 170px;
    padding: 10px;
    object-fit: contain;
    border-radius: 24px;
    background: var(--white);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.18);
}

.showcase-message {
    max-width: 590px;
    margin-top: 80px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #EAF7FF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.showcase-message h1 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.showcase-message p {
    max-width: 580px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 17px;
    line-height: 1.8;
}

.showcase-features {
    margin-top: 50px;
    padding-top: 28px;
    display: grid;
    gap: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.12);
    color: #6ECCFF;
    font-size: 18px;
}

.feature-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
}

.feature-item span {
    display: block;
    max-width: 480px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   5. Decorative waves
   ========================================================= */

.showcase-wave {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    border-style: solid;
    pointer-events: none;
}

.wave-one {
    width: 600px;
    height: 600px;
    right: -310px;
    bottom: -370px;
    border-width: 70px;
    border-color: rgba(27, 167, 253, 0.14);
}

.wave-two {
    width: 430px;
    height: 430px;
    right: -190px;
    bottom: -270px;
    border-width: 40px;
    border-color: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   6. Right login section
   ========================================================= */

.login-section {
    min-height: 100vh;
    padding: 45px 72px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}

.mobile-brand {
    display: none;
}

.login-container {
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.login-heading {
    margin-bottom: 34px;
}

.secure-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 13px;
    margin-bottom: 21px;
    border-radius: 999px;
    background: rgba(0, 37, 129, 0.07);
    color: var(--company-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-heading h2 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.login-heading p {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   7. Login form
   ========================================================= */

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 9px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.forgot-link {
    margin-bottom: 9px;
    color: var(--company-primary);
    font-size: 13px;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    min-height: 56px;
    padding: 13px 18px 13px 49px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    outline: none;
    background: var(--white);
    color: var(--text-primary);
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:hover {
    border-color: #C6CCD5;
}

.input-wrapper input:focus {
    border-color: var(--company-primary);
    box-shadow:
        0 0 0 4px rgba(0, 37, 129, 0.09);
}

.input-wrapper:focus-within .input-icon {
    color: var(--company-primary);
}


/* =========================================================
   8. Remember me
   ========================================================= */

.form-options {
    margin: 2px 0 27px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
    font-size: 14px;
}

.remember-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    flex: 0 0 20px;
    border: 1.5px solid #C9CED6;
    border-radius: 6px;
    background: var(--white);
    color: var(--white);
    font-size: 10px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.remember-option input:checked + .custom-checkbox {
    border-color: var(--company-primary);
    background: var(--company-primary);
}

.remember-option input:focus-visible + .custom-checkbox {
    box-shadow:
        0 0 0 4px rgba(0, 37, 129, 0.10);
}


/* =========================================================
   9. Login button
   ========================================================= */

.login-button {
    width: 100%;
    min-height: 57px;
    padding: 13px 20px;
    border: 1px solid var(--company-primary);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    cursor: pointer;
    background: var(--company-primary);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    box-shadow:
        0 13px 26px rgba(0, 37, 129, 0.18);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    background: var(--company-primary-dark);
    box-shadow:
        0 17px 32px rgba(0, 37, 129, 0.23);
}

.login-button:active {
    transform: translateY(0);
}

.login-button i {
    transition: transform 0.2s ease;
}

.login-button:hover i {
    transform: translateX(4px);
}


/* =========================================================
   10. Security and help
   ========================================================= */

.login-security {
    margin-top: 30px;
    padding: 17px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--page-background);
}

.security-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(0, 37, 129, 0.08);
    color: var(--company-primary);
    font-size: 14px;
}

.login-security p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.65;
}

.login-help {
    margin-top: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.login-help a {
    margin-left: 5px;
    color: var(--company-primary);
    font-weight: 700;
}

.login-help a:hover {
    text-decoration: underline;
}


/* =========================================================
   11. Footer
   ========================================================= */

.login-footer {
    width: 100%;
    max-width: 650px;
    margin: 45px auto 0;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 17px;
}

.footer-links a:hover {
    color: var(--company-primary);
}


/* =========================================================
   12. Laptop and tablet
   ========================================================= */

@media (max-width: 1150px) {

    .login-page {
        grid-template-columns:
            minmax(380px, 43%)
            minmax(450px, 57%);
    }

    .login-showcase {
        padding:
            44px
            38px;
    }

    .showcase-message h1 {
        font-size: 40px;
    }

    .showcase-message p {
        font-size: 15px;
    }

    .login-section {
        padding:
            40px
            48px
            26px;
    }

}


/* =========================================================
   13. Tablet and mobile
   ========================================================= */

@media (max-width: 860px) {

    .login-page {
        min-height: 100vh;
        display: block;
        background: var(--page-background);
    }

    .login-showcase {
        display: none;
    }

    .login-section {
        min-height: 100vh;
        padding:
            30px
            20px
            22px;
        justify-content: flex-start;
        background:
            linear-gradient(
                180deg,
                rgba(0, 37, 129, 0.07) 0,
                rgba(0, 37, 129, 0) 290px
            ),
            var(--page-background);
    }

    .mobile-brand {
        display: flex;
        justify-content: center;
        margin-bottom: 26px;
    }

    .mobile-brand img {
        width: 112px;
        height: 112px;
        padding: 7px;
        border-radius: 20px;
        object-fit: contain;
        background: var(--white);
        box-shadow: var(--small-shadow);
    }

    .login-container {
        max-width: 530px;
        margin:
            0
            auto;
        padding:
            31px
            25px;
        border: 1px solid var(--border-color);
        border-radius: 22px;
        background: var(--white);
        box-shadow: var(--small-shadow);
    }

    .login-heading {
        margin-bottom: 28px;
        text-align: center;
    }

    .secure-label {
        margin-bottom: 17px;
    }

    .login-heading h2 {
        font-size: 34px;
    }

    .login-heading p {
        max-width: 380px;
        margin:
            11px
            auto
            0;
    }

    .login-footer {
        max-width: 530px;
        margin-top: 28px;
        padding-top: 18px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

}


/* =========================================================
   14. Small mobile devices
   ========================================================= */

@media (max-width: 520px) {

    .login-section {
        padding:
            20px
            14px;
    }

    .mobile-brand {
        margin-bottom: 18px;
    }

    .mobile-brand img {
        width: 92px;
        height: 92px;
        border-radius: 17px;
    }

    .login-container {
        padding:
            27px
            18px;
        border-radius: 18px;
    }

    .secure-label {
        font-size: 10px;
    }

    .login-heading h2 {
        font-size: 29px;
    }

    .login-heading p {
        font-size: 14px;
    }

    .label-row {
        align-items: flex-start;
    }

    .forgot-link {
        font-size: 12px;
    }

    .input-wrapper input {
        min-height: 54px;
        padding-right: 14px;
        font-size: 14px;
    }

    .login-button {
        min-height: 55px;
        font-size: 14px;
    }

    .login-security {
        padding: 14px;
    }

    .login-help span,
    .login-help a {
        display: block;
        margin-left: 0;
    }

    .login-help a {
        margin-top: 5px;
    }

}


/* =========================================================
   15. Very small screens
   ========================================================= */

@media (max-width: 360px) {

    .login-container {
        padding:
            24px
            15px;
    }

    .login-heading h2 {
        font-size: 26px;
    }

    .remember-option {
        font-size: 13px;
    }

}


/* =========================================================
   16. Accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}