﻿* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: #172033;
    background: radial-gradient(circle at 15% 15%, #eef8f4 0, transparent 32%), radial-gradient(circle at 85% 75%, #edf5ff 0, transparent 34%), #f6f8fb;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 38px 30px 20px;
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    width: 100%;
    max-width: 1360px;
    min-height: 720px;
    overflow: hidden;
    border: 1px solid #e2e8ee;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(33, 53, 77, 0.13), 0 5px 16px rgba(33, 53, 77, 0.05);
}

/* Left branding panel */

.branding-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    background: linear-gradient( 155deg, #f9fdff 0%, #f0faf6 52%, #e4f5ed 100%);
}

.brand-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 52px 64px 0;
}

.brand-logo {
    display: block;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: transparent;
}

.brand-text h1 {
    margin: 0;
    color: #078b55;
    font-size: 27px;
    font-weight: 700;
    white-space: nowrap;
}

.brand-text p {
    margin: 5px 0 0;
    color: #52647b;
    font-size: 18px;
}

.branding-copy {
    position: relative;
    z-index: 3;
    margin: 85px 64px 0;
    padding-left: 72px;
    padding-right: 35px;
}


    .branding-copy h2 {
        margin: 0;
        color: #132035;
        font-size: 27px;
        font-weight: 700;
        line-height: 1.35;
    }

        .branding-copy h2 span {
            color: #078c55;
        }

    .branding-copy p {
        max-width: 430px;
        margin: 24px 0 0;
        color: #4f6175;
        font-size: 16px;
        line-height: 1.65;
    }


.illustration-wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 53%;
    overflow: hidden;
    background: #eaf7f1;
}

.login-illustration {
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    width: 104%;
    max-width: none;
    height: 102%;
    border: 0;
    object-fit: cover;
    object-position: center bottom;
    transform: translateX(-50%);
}
    
/* Right login panel */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 60px 70px;
    background: #ffffff;
}

.login-form-container {
    width: 100%;
    max-width: 500px;
}

.login-heading {
    margin-bottom: 54px;
}

    .login-heading h2 {
        margin: 0 0 12px;
        color: #142033;
        font-size: 43px;
        font-weight: 700;
        letter-spacing: -1px;
    }

    .login-heading p {
        margin: 0;
        color: #66748a;
        font-size: 18px;
    }

.form-group {
    margin-bottom: 27px;
}

.form-label {
    display: block;
    margin-bottom: 9px;
    color: #172033;
    font-size: 15px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    color: #64748b;
    font-size: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-control {
    display: block;
    width: 100%;
    height: 62px;
    padding: 0 50px;
    border: 1px solid #ccd5e1;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: #172033;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control::placeholder {
        color: #9aa6b6;
    }

    .form-control:focus {
        border-color: #0b9663;
        box-shadow: 0 0 0 4px rgba(11, 150, 99, 0.11);
    }

.password-control {
    padding-right: 55px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    border: 0;
    background: transparent;
    color: #66758a;
    font-size: 18px;
    cursor: pointer;
    transform: translateY(-50%);
}

    .password-toggle:hover {
        color: #0b9663;
    }

.validation-message {
    display: block;
    margin-top: 7px;
    color: #c62828;
    font-size: 13px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 3px 0 28px;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #556276;
    font-size: 14px;
    cursor: pointer;
}

    .remember-option input {
        width: 17px;
        height: 17px;
        accent-color: #099460;
    }

.forgot-password-link {
    color: #078b58;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

    .forgot-password-link:hover {
        text-decoration: underline;
    }

.login-message {
    display: block;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #f1b8b8;
    border-radius: 8px;
    background: #fff2f2;
    color: #b42318;
    font-size: 14px;
}

.login-button {
    width: 100%;
    height: 62px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient( 90deg, #078f5b, #04a171);
    box-shadow: 0 8px 22px rgba(5, 151, 99, 0.20);
    color: #ffffff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .login-button:hover {
        box-shadow: 0 12px 26px rgba(5, 151, 99, 0.26);
        transform: translateY(-1px);
    }

    .login-button:active {
        box-shadow: 0 5px 15px rgba(5, 151, 99, 0.18);
        transform: translateY(0);
    }

.login-footer {
    margin-top: 24px;
    color: #687488;
    font-size: 14px;
    text-align: center;
}

/* Tablet */

@media (max-width: 950px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 650px;
        min-height: auto;
    }

    .branding-panel {
        min-height: 300px;
        padding: 0;
    }

    .brand-header {
        margin: 35px 40px 0;
    }

    .branding-copy {
        margin: 35px 40px 40px;
        padding-left: 0;
    }

    .illustration-wrapper {
        display: none;
    }

    .login-panel {
        padding: 50px 45px;
    }
}

/* Mobile */

@media (max-width: 560px) {
    .login-page {
        justify-content: flex-start;
        padding: 12px;
    }

    .login-card {
        border-radius: 18px;
    }

    .branding-panel {
        min-height: auto;
    }

    .brand-header {
        gap: 12px;
        margin: 25px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .brand-text h1 {
        font-size: 21px;
        white-space: normal;
    }

    .brand-text p {
        font-size: 14px;
    }

    .branding-copy {
        display: none;
    }

    .login-panel {
        padding: 38px 24px;
    }

    .login-heading {
        margin-bottom: 30px;
    }

        .login-heading h2 {
            font-size: 31px;
        }

        .login-heading p {
            font-size: 15px;
        }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .login-footer {
        margin-top: 18px;
        font-size: 12px;
    }
}
