
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #172033;
    --muted: #7c899d;
    --border: #e5eaf2;
    --background: #f4f7fc;
}

/* HIDE SCROLLBARS EVERYWHERE */

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Firefox */
* {
    scrollbar-width: none;
}

/* Internet Explorer / Legacy Edge */
* {
    -ms-overflow-style: none;
}

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

/* MAIN CONTAINER */

.container {
    position: relative;
    width: 100%;
    max-width: 1080px;
    min-height: 620px;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
    background: white;
    border: 1px solid #e9edf5;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(30, 55, 100, 0.09);
}

/* BRANDING PANEL */

.form-header {
    grid-column: 1;
    grid-row: 1;
    background: linear-gradient(145deg, #1d4ed8, #3b82f6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px;
    color: white;
    position: relative;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
}

.form-header::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    right: -150px;
    top: -100px;
}

.form-header::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    left: -120px;
    bottom: -100px;
}

.form-header h1 {
    font-size: 43px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.form-header p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    max-width: 300px;
    position: relative;
    z-index: 1;
}

/* LOGIN FORM */

.container > form {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 85px 65px 55px;
    width: 100%;
}

form h2 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 35px;
    color: var(--text);
}

.form-group {
    margin-bottom: 23px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 10px;
}

input {
    display: block;
    width: 100%;
    height: 51px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfcfe;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    transition: all 0.25s ease;
}

input::placeholder {
    color: #a4afbf;
}

input:hover {
    border-color: #b7c8e5;
}

input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

/* LOGIN BUTTON */

button[type="submit"] {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(37,99,235,0.2);
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* REGISTER LINK */

.login-link {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

.login-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 3px;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ALERT MESSAGES */

.error-message,
.success-message {
    position: absolute;
    top: 20px;
    right: 35px;
    width: auto;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.5;
    z-index: 2;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.success-message {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* RESPONSIVE */

@media (max-width: 750px) {

    body {
        align-items: flex-start;
    }

    .container {
        max-width: 100%;
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .form-header {
        grid-column: 1;
        grid-row: 1;
        min-height: 190px;
        padding: 35px;
        border-radius: 0;
    }

    .form-header h1 {
        font-size: 32px;
    }

    .form-header p {
        font-size: 13px;
    }

    .container > form {
        grid-column: 1;
        grid-row: 2;
        padding: 45px 30px 35px;
    }

    form h2 {
        font-size: 23px;
        margin-bottom: 27px;
    }

    .error-message,
    .success-message {
        position: static;
        width: auto;
        margin: 15px 25px 0;
    }
}

@media (max-width: 400px) {
    .form-header {
        padding: 28px;
    }

    .container > form {
        padding: 35px 22px;
    }
}
