﻿:root {
    --navy: #032f70;
    --sky: #5fbded;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #cbd5e1;
    --error: #dc2626;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy), var(--sky));
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    max-width: 1100px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 40px 80px rgba(3, 47, 112, 0.35);
}

/* LEFT PANEL */
.auth-info {
    background: linear-gradient(160deg, var(--navy), var(--sky));
    color: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.brand img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.brand svg {
    width: 48px;
    height: 48px;
    margin-right: 14px;
}

.brand span {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.auth-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 18px;
}

.auth-info p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 420px;
}

.info-list {
    margin-top: 32px;
}

.info-list li {
    list-style: none;
    margin-bottom: 16px;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.info-list li::before {
    content: "✔";
    margin-right: 12px;
    font-weight: 700;
}

/* RIGHT PANEL */
.auth-form {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.auth-form p {
    color: var(--text-muted);
    margin-bottom: 34px;
    font-size: 14px;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(95, 189, 237, 0.25);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    background: #fff;
    padding: 0 6px;
    transition: 0.3s;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: -8px;
    font-size: 12px;
    color: var(--navy);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--navy);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 22px;
}

.form-footer a {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

.form-footer a:hover {
    color: var(--sky);
}

.login-btn {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--navy), var(--sky));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.35s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(3, 47, 112, 0.45);
}

/* ============================================
   RESPONSIVE DESIGN - LAYOUT ONLY
   Sizes remain consistent, only alignment changes
   ============================================ */

/* MOBILE DEVICES (Portrait) - 320px to 767px */
@media (max-width: 767px) {
    body {
        padding: 0;
    }

    .auth-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    /* Info panel on TOP */
    .auth-info {
        display: flex;
        order: 1;
    }

    /* Form panel on BOTTOM */
    .auth-form {
        order: 2;
    }
}

/* TABLETS (Portrait) - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .auth-wrapper {
        max-width: 720px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        margin: 20px;
    }

    /* Info panel on TOP */
    .auth-info {
        display: flex;
        order: 1;
    }

    /* Form panel on BOTTOM */
    .auth-form {
        order: 2;
    }
}

/* TABLETS (Landscape) & SMALL LAPTOPS - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .auth-wrapper {
        max-width: 960px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }

    .auth-info {
        order: 1;
    }

    .auth-form {
        order: 2;
    }
}

/* DESKTOP & LARGE LAPTOPS - 1200px to 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
    .auth-wrapper {
        max-width: 1100px;
    }
}

/* EXTRA LARGE SCREENS - 1400px and above */
@media (min-width: 1400px) {
    .auth-wrapper {
        max-width: 1200px;
    }
}

/* LANDSCAPE ORIENTATION for MOBILE */
@media (max-width: 767px) and (orientation: landscape) {
    .auth-wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        min-height: 100vh;
    }

    .auth-info {
        order: 1;
    }

    .auth-form {
        order: 2;
    }
}