/* ==========================================================
   RESET
========================================================== */

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

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    overflow-x: hidden;
}

body {
    background: #fff;
}

/* ==========================================================
   ERROR
========================================================== */

.errorlist {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    list-style: none;
    z-index: 10;
}

.errorlist li {
    padding: 18px;
    background: #ffe761;
    font-size: 16px;
}

/* ==========================================================
   LAYOUT
========================================================== */

.content {
    display: flex;
    min-height: 100dvh;
}

/* LEFT IMAGE */

.cover-wrap {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.cover-img-bk,
.cover-img-fig {
    position: absolute;
    inset: 0;
}

.cover-img-fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RIGHT CONTENT */

.text-wrap {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: clamp(20px, 5vw, 60px);

    background: #fff;
}

/* ==========================================================
   LOGO
========================================================== */

.logo-img {
    display: flex;
    justify-content: center;

    margin-bottom: clamp(10px, 2vh, 20px);
}

.logo-img img {
    width: 180px;
    max-width: 70vw;
}

/* ==========================================================
   TITLE
========================================================== */

h1 {
    margin-bottom: 12px;

    color: #43425d;

    font-size: clamp(24px, 3vw, 34px);

    font-weight: 700;
    letter-spacing: 3px;

    text-align: center;
}

.welcome-text {
    max-width: 420px;

    margin-bottom: 30px;

    color: #7b7b8b;

    font-size: 16px;
    line-height: 1.6;

    text-align: center;
}

/* ==========================================================
   FORM
========================================================== */

form {
    width: 100%;
    max-width: 420px;
}

.form-input {
    margin-top: 30px;
}

.form-input input {
    width: 100%;

    padding: 12px 4px;

    border: none;
    border-bottom: 2px solid #e8e8ef;

    outline: none;

    font-size: 15px;
}

/* ==========================================================
   LOGIN BUTTON
========================================================== */

button[type='submit'] {
    display: block;

    width: min(230px, 90%);

    margin: clamp(35px, 6vh, 70px) auto 25px;

    background: transparent;

    border: none;

    cursor: pointer;
}

.login-string {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 50px;

    background: #43425d;

    border-radius: 6px;

    transition: 0.2s;
}

.login-string:hover {
    background: #33324c;
}

.login-string span {
    color: white;

    font-size: 18px;

    font-weight: 600;
}

/* ==========================================================
   FORGOT PASSWORD
========================================================== */

.forgot-password {
    text-align: center;
}

.forgot-password a {
    color: #5a55aa;

    text-decoration: none;

    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* ==========================================================
   FORGOT PASSWORD CARD
========================================================== */

.forgot-password-card {
    width: min(470px, 100%);

    margin-top: 25px;

    padding: clamp(18px, 4vw, 30px);

    background: white;

    border-radius: 18px;

    border: 1px solid #edf0f6;

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 16px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: linear-gradient(135deg, #5a55aa, #242348);

    color: white;

    font-size: 28px;
}

.contact-title {
    margin-bottom: 12px;

    color: #242348;

    font-size: clamp(20px, 4vw, 26px);

    font-weight: 700;
}

.contact-description {
    margin-bottom: 20px;

    color: #666;

    font-size: 15px;

    line-height: 1.6;
}

.contact-box {
    overflow: hidden;

    margin-bottom: 22px;

    background: #f8f9fc;

    border: 1px solid #e5e8f2;

    border-radius: 12px;
}

.contact-row {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    padding: 14px;
}

.contact-row:not(:last-child) {
    border-bottom: 1px solid #e5e8f2;
}

.icon {
    font-size: 20px;
}

.value {
    color: #242348;

    font-size: 15px;

    font-weight: 600;
}

/* ==========================================================
   RETURN BUTTON
========================================================== */

.return-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: min(220px, 90%);

    height: 42px;

    border: 1px solid #dadce0;

    border-radius: 999px;

    background: white;

    cursor: pointer;
}

.return-arrow {
    margin-right: 8px;

    color: #9aa0a6;
}

.return-text {
    color: #43425d;

    font-size: 15px;

    font-weight: 600;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1024px) {
    .cover-wrap {
        display: none;
    }

    .text-wrap {
        width: 100%;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {
    .content {
        display: block;
    }

    .text-wrap {
        min-height: 100dvh;

        padding: 24px 18px;

        justify-content: center;
    }

    .logo-img img {
        width: 150px;
    }

    .welcome-text {
        font-size: 14px;
    }

    form {
        max-width: 360px;
    }

    .forgot-password-card {
        width: 100%;

        margin-top: 18px;

        border-radius: 14px;
    }

    .contact-row {
        flex-direction: column;

        gap: 5px;
    }
}

/* ==========================================================
   VERY SMALL DEVICES
========================================================== */

@media (max-width: 380px), (max-height: 650px) {
    .text-wrap {
        justify-content: flex-start;

        padding-top: 25px;
    }

    .logo-img img {
        width: 120px;
    }

    h1 {
        font-size: 22px;
    }

    .welcome-text {
        margin-bottom: 15px;
    }

    .forgot-password-card {
        padding: 16px;

        margin-top: 12px;
    }

    .contact-icon {
        width: 48px;

        height: 48px;

        font-size: 20px;
    }

    .contact-description {
        font-size: 13px;
    }

    .contact-row {
        padding: 10px;
    }

    button[type='submit'] {
        margin-top: 30px;
    }
}
