/* =====================================================
   DAREMARK LOGIN
===================================================== */

:root {
    --dm-navy: #203a78;
    --dm-navy-dark: #182f63;

    --dm-cream: #f3eee5;
    --dm-cream-light: #faf8f3;

    --dm-brown: #C72C41;

    --dm-black: #211d1b;
    --dm-gray: #6e6b68;

    --dm-border: #dcd4c8;

    --dm-white: #ffffff;
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--dm-cream);
    color: var(--dm-black);
}

button,
input {
    font-family: inherit;
}

a {
    text-decoration: none;
}


/* =====================================================
   MAIN
===================================================== */

.dm-login-page {
    width: 100%;
    /* height: 100vh; */
    /* height: 100dvh; */

    overflow: hidden;

    background: var(--dm-cream);
}


/* =====================================================
   WRAPPER
===================================================== */

.dm-login-wrapper {
    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns: 1fr 1fr;
    padding-top:55px;
    overflow: hidden;

    background: var(--dm-white);

    border: 1px solid #d7cfc3;
}


/* =====================================================
   LEFT VISUAL
===================================================== */

.dm-login-visual {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #171612;
}


/* Image */

.dm-login-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1.01);
}


/* Overlay */

.dm-login-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(10, 10, 8, 0.28) 0%,
            rgba(10, 10, 8, 0.10) 35%,
            rgba(10, 10, 8, 0.70) 100%
        );
}


/* =====================================================
   LEFT LOGO
===================================================== */

.dm-login-logo {
    position: absolute;

    top: 38px;
    left: 40px;

    z-index: 3;

    display: flex;
    align-items: center;

    gap: 10px;

    color: white;
}

.dm-login-logo-mark {
    width: 47px;
    height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.96);

    color: #222;

    font-family: Georgia, serif;

    font-size: 20px;
}

.dm-login-logo-name {
    font-family: "Manrope", sans-serif;

    font-size: 18px;

    font-weight: 700;

    letter-spacing: 2px;
}


/* =====================================================
   LEFT CONTENT
===================================================== */

.dm-login-visual-content {
    position: absolute;

    left: 55px;
    bottom: 70px;

    z-index: 3;

    max-width: 500px;
}

.dm-login-visual-label {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 3px;
}

.dm-login-visual-label span {
    color: white;

    letter-spacing: 1px;
}

.dm-login-visual-label i {
    width: 35px;
    height: 1px;

    display: block;

    background: rgba(255, 255, 255, 0.6);
}

.dm-login-visual-content h2 {
    color: white;

    font-family: "Manrope", sans-serif;

    font-size: clamp(45px, 4vw, 72px);

    line-height: 0.98;

    font-weight: 600;

    letter-spacing: -3px;

    margin-bottom: 18px;
}

.dm-login-visual-content h2 em {
    color: #c58a68;

    font-family: Georgia, serif;

    font-weight: 400;

    font-style: italic;
}

.dm-login-visual-content p {
    max-width: 390px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;

    line-height: 1.6;
}


/* =====================================================
   IMAGE TAG
===================================================== */

.dm-login-image-tag {
    position: absolute;

    right: 35px;
    bottom: 35px;

    z-index: 4;

    min-width: 145px;

    padding: 18px 22px;

    background: var(--dm-navy);

    color: white;
}

.dm-login-image-tag span {
    display: block;

    margin-bottom: 7px;

    font-size: 8px;

    letter-spacing: 3px;

    font-weight: 600;

    opacity: 0.7;
}

.dm-login-image-tag strong {
    font-size: 14px;

    line-height: 1.3;

    font-weight: 500;
}


/* =====================================================
   YEAR
===================================================== */

.dm-login-year {
    position: absolute;

    right: 30px;
    top: 50%;

    transform: translateY(-50%) rotate(90deg);

    z-index: 3;

    color: rgba(255, 255, 255, 0.45);

    font-size: 10px;

    letter-spacing: 5px;
}


/* =====================================================
   RIGHT AREA
===================================================== */

.dm-login-form-area {
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--dm-cream-light);
    padding-top:80px !important; 
    padding: 20px 30px;

    overflow: hidden;
}


/* =====================================================
   FORM CONTAINER
===================================================== */

.dm-login-form-container {
    width: 100%;

    max-width: 470px;
}


/* =====================================================
   MOBILE LOGO
===================================================== */

.dm-login-mobile-logo {
    display: none;
}


/* =====================================================
   HEADING
===================================================== */

.dm-login-heading {
    margin-bottom: 24px;
}

.dm-login-small-label {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

    color: var(--dm-brown);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 3px;
}

.dm-login-small-label span {
    width: 7px;
    height: 7px;

    display: block;

    background: var(--dm-brown);

    border-radius: 50%;
}

.dm-login-heading h1 {
    font-family: "Manrope", sans-serif;

    font-size: clamp(45px, 5vw, 72px);

    line-height: 0.9;

    letter-spacing: -4px;

    font-weight: 500;

    color: var(--dm-black);

    margin-bottom: 15px;
}

.dm-login-heading h1 em {
    color: var(--dm-navy);

    font-family: Georgia, serif;

    font-style: italic;

    font-weight: 400;
}

.dm-login-heading p {
    max-width: 430px;

    color: var(--dm-gray);

    font-size: 16px;

    line-height: 1.55;
}


/* =====================================================
   FORM
===================================================== */

.dm-login-form {
    width: 100%;
}


/* =====================================================
   FIELD
===================================================== */

.dm-login-field {
    margin-bottom: 14px;
}

.dm-login-field label {
    display: block;

    margin-bottom: 6px;

    color: var(--dm-black);

    font-size: 16px;

    font-weight: 600;

    letter-spacing: 0.2px;
}


/* =====================================================
   LABEL ROW
===================================================== */

.dm-login-label-row {
    display: flex;

    justify-content: space-between;
    align-items: center;
}

.dm-login-forgot {
    color: var(--dm-navy);

    font-size: 16px;

    font-weight: 600;

    transition: 0.25s ease;
}

.dm-login-forgot:hover {
    color: var(--dm-brown);
}


/* =====================================================
   INPUT
===================================================== */

.dm-login-input-wrap {
    position: relative;

    width: 100%;
}

.dm-login-input-wrap > i {
    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: #88817a;

    font-size: 16px;

    pointer-events: none;
}

.dm-login-input-wrap input {
    width: 100%;

    height: 48px;

    padding: 0 45px;

    border: 1px solid var(--dm-border);

    outline: none;

    background: white;

    color: var(--dm-black);

    font-size: 16px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.dm-login-input-wrap input::placeholder {
    color: #aaa39b;
}

.dm-login-input-wrap input:focus {
    border-color: var(--dm-navy);

    box-shadow:
        0 0 0 3px rgba(32, 58, 120, 0.07);
}


/* =====================================================
   PASSWORD BUTTON
===================================================== */

.dm-login-password-toggle {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    cursor: pointer;

    color: #88817a;

    padding: 5px;

    transition: 0.25s ease;
}

.dm-login-password-toggle:hover {
    color: var(--dm-navy);
}


/* =====================================================
   REMEMBER
===================================================== */

.dm-login-options {
    margin-top: 2px;

    margin-bottom: 15px;
}

.dm-login-checkbox {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    color: var(--dm-gray);

    font-size: 16px;
}

.dm-login-checkbox input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.dm-login-checkmark {
    width: 15px;
    height: 15px;

    border: 1px solid #c9c0b5;

    background: white;

    display: flex;

    align-items: center;
    justify-content: center;
}

.dm-login-checkbox input:checked + .dm-login-checkmark {
    background: var(--dm-navy);

    border-color: var(--dm-navy);
}

.dm-login-checkbox input:checked + .dm-login-checkmark::after {
    content: "✓";

    color: white;

    font-size: 6px;

    font-weight: 700;
}


/* =====================================================
   SUBMIT
===================================================== */

.dm-login-submit {
    position: relative;

    width: 100%;

    height: 48px;

    border: none;

    background: var(--dm-navy);

    color: white;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 16px;

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 1px;

    overflow: hidden;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.dm-login-submit::before {
    content: "";

    position: absolute;

    inset: 0;

    background: var(--dm-brown);

    transform: translateX(-101%);

    transition: transform 0.35s ease;
}

.dm-login-submit span,
.dm-login-submit i {
    position: relative;

    z-index: 1;
}

.dm-login-submit:hover {
    transform: translateY(-1px);
}

.dm-login-submit:hover::before {
    transform: translateX(0);
}

.dm-login-submit i {
    font-size: 16px;

    transition: transform 0.3s ease;
}

.dm-login-submit:hover i {
    transform: translate(3px, -3px);
}


/* =====================================================
   REGISTER
===================================================== */

.dm-login-register {
    margin-top: 14px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 6px;

    color: var(--dm-gray);

    font-size: 16px;
}

.dm-login-register a {
    color: var(--dm-navy);

    font-weight: 700;

    display: inline-flex;

    align-items: center;

    gap: 5px;
}

.dm-login-register a i {
    font-size: 8px;

    transition: transform 0.25s ease;
}

.dm-login-register a:hover i {
    transform: translateX(4px);
}


/* =====================================================
   FOOTER
===================================================== */

.dm-login-footer {
    margin-top: 18px;

    padding-top: 12px;

    border-top: 1px solid #ddd5ca;

    display: flex;

    justify-content: space-between;
    align-items: center;

    color: #99928b;

    font-size: 9px;
}

.dm-login-footer-links {
    display: flex;

    gap: 15px;
}

.dm-login-footer a {
    color: #858078;

    transition: 0.25s ease;
}

.dm-login-footer a:hover {
    color: var(--dm-navy);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .dm-login-logo {
        left: 28px;
        top: 28px;
    }

    .dm-login-visual-content {
        left: 35px;
        bottom: 55px;
    }

    .dm-login-visual-content h2 {
        font-size: 48px;
    }

    .dm-login-image-tag {
        display: none;
    }

    .dm-login-form-area {
        padding: 20px;
    }

    .dm-login-heading h1 {
        font-size: 50px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 850px) {

    .dm-login-page {
        height: auto;
        min-height: 100dvh;

        overflow-y: auto;
    }

    .dm-login-wrapper {
        min-height: 100dvh;

        display: block;

        border: none;
    }


    /* Hide image */

    .dm-login-visual {
        display: none;
    }


    /* Form Area */

    .dm-login-form-area {
        min-height: 100dvh;

        height: auto;

        padding: 25px 22px;

        align-items: flex-start;

        overflow: visible;
    }


    .dm-login-form-container {
        max-width: 520px;

        margin: 0 auto;
    }


    /* Mobile Logo */

    .dm-login-mobile-logo {
        display: flex;

        align-items: center;

        gap: 9px;

        margin-bottom: 30px;

        color: var(--dm-black);

        font-family: "Manrope", sans-serif;

        font-size: 15px;

        font-weight: 700;

        letter-spacing: 2px;
    }

    .dm-login-mobile-mark {
        width: 38px;
        height: 38px;

        display: flex;

        align-items: center;
        justify-content: center;

        background: var(--dm-black);

        color: white;

        font-family: Georgia, serif;

        font-size: 17px;
    }


    /* Heading */

    .dm-login-heading {
        margin-bottom: 25px;
    }

    .dm-login-small-label {
        margin-bottom: 10px;
    }

    .dm-login-heading h1 {
        font-size: 50px;

        letter-spacing: -3px;

        margin-bottom: 13px;
    }

    .dm-login-heading p {
        font-size: 12px;

        line-height: 1.5;
    }


    /* Inputs */

    .dm-login-field {
        margin-bottom: 15px;
    }

    .dm-login-input-wrap input {
        height: 50px;
    }

    .dm-login-options {
        margin-bottom: 15px;
    }

    .dm-login-submit {
        height: 50px;
    }


    /* Register */

    .dm-login-register {
        margin-top: 14px;
    }


    /* Footer */

    .dm-login-footer {
        margin-top: 22px;
    }
}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 500px) {

    .dm-login-form-area {
        padding: 22px 18px;
    }

    .dm-login-mobile-logo {
        margin-bottom: 25px;
    }

    .dm-login-heading {
        margin-bottom: 22px;
    }

    .dm-login-heading h1 {
        font-size: 46px;

        letter-spacing: -2.5px;
    }

    .dm-login-heading p {
        font-size: 12px;
    }

    .dm-login-field {
        margin-bottom: 13px;
    }

    .dm-login-field label {
        font-size: 12px;

        margin-bottom: 5px;
    }

    .dm-login-input-wrap input {
        height: 47px;

        font-size: 12px;
    }

    .dm-login-submit {
        height: 47px;
    }

    .dm-login-register {
        flex-direction: column;

        gap: 5px;

        font-size: 12px;
    }

    .dm-login-footer {
        margin-top: 20px;

        padding-top: 11px;

        flex-direction: row;

        gap: 10px;
    }
}


/* =====================================================
   VERY SHORT SCREENS
===================================================== */

@media (max-height: 650px) and (min-width: 851px) {

    .dm-login-form-area {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .dm-login-heading {
        margin-bottom: 17px;
    }

    .dm-login-small-label {
        margin-bottom: 7px;
    }

    .dm-login-heading h1 {
        font-size: 48px;

        margin-bottom: 10px;
    }

    .dm-login-heading p {
        font-size: 12px;
    }

    .dm-login-field {
        margin-bottom: 10px;
    }

    .dm-login-input-wrap input {
        height: 44px;
    }

    .dm-login-options {
        margin-bottom: 10px;
    }

    .dm-login-submit {
        height: 44px;
    }

    .dm-login-register {
        margin-top: 10px;
    }

    .dm-login-footer {
        margin-top: 12px;

        padding-top: 8px;
    }
}