* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f1efff;
    color: #111827;
}

.login-page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 1080px;
    min-height: 620px;
    background: #ffffff;
    border-radius: 28px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    box-shadow: 0 25px 70px rgba(92, 70, 200, 0.25);
}

.brand-panel {
    border-radius: 24px;
    padding: 42px;
    color: white;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.75), transparent 25%),
        radial-gradient(circle at 20% 65%, rgba(25,35,180,0.95), transparent 38%),
        linear-gradient(135deg, #7dd3fc 0%, #4f46e5 45%, #c084fc 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-star {
    font-size: 76px;
    font-weight: 800;
    line-height: 1;
}

.brand-text p {
    margin: 0 0 18px;
    font-size: 16px;
    opacity: 0.9;
}

.brand-text h1 {
    margin: 0;
    max-width: 430px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.form-panel {
    padding: 70px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-star {
    color: #4f46e5;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.form-header h2 {
    margin: 8px 0 10px;
    font-size: 34px;
    letter-spacing: -0.7px;
}

.form-header p {
    margin: 0 0 34px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
}

label {
    display: block;
    margin: 18px 0 8px;
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    background: white;
}

input:focus {
    border-color: #6941e1;
    box-shadow: 0 0 0 4px rgba(105, 65, 225, 0.14);
}

button {
    width: 100%;
    height: 54px;
    margin-top: 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6941e1, #4f46e5);
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.28);
}

button:hover {
    transform: translateY(-1px);
}

.error-box {
    padding: 13px 14px;
    border-radius: 12px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 14px;
    margin-bottom: 18px;
}

/* Tablet */
@media (max-width: 900px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 520px;
        min-height: auto;
    }

    .brand-panel {
        min-height: 220px;
        padding: 28px;
    }

    .brand-star {
        font-size: 52px;
    }

    .brand-text h1 {
        font-size: 26px;
    }

    .form-panel {
        padding: 34px 24px 28px;
    }
}

/* Mobile app-like interface */
@media (max-width: 520px) {
    body {
        background: #ffffff;
    }

    .login-page {
        padding: 0;
        align-items: stretch;
    }

    .login-card {
        min-height: 100vh;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .brand-panel {
        border-radius: 0 0 28px 28px;
        min-height: 235px;
        padding: 28px 24px;
    }

    .brand-text p {
        font-size: 14px;
    }

    .brand-text h1 {
        font-size: 24px;
    }

    .form-panel {
        flex: 1;
        padding: 32px 24px 40px;
        justify-content: flex-start;
    }

    .form-header h2 {
        font-size: 30px;
    }

    input,
    button {
        height: 56px;
        border-radius: 14px;
        font-size: 16px;
    }
}