/* =============================================================
   Sign-in page — Digital Print Studio M
   Matches the brand identity of digitalprintonline.eu
   ============================================================= */

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

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #000;
}

/* ── Left: brand panel ──────────────────────────────────── */

.panel-brand {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #212121;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* subtle grid overlay */
.panel-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* bottom accent bar */
.panel-brand::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000 0%, #555 50%, #000 100%);
}

.brand-logo {
    width: 180px;
    max-width: 80%;
    margin-bottom: 32px;
}

.brand-name {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
}

.brand-tagline {
    color: #aeaeae;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 12px;
    text-align: center;
}

.brand-divider {
    width: 40px;
    height: 2px;
    background: #555;
    margin: 28px auto 0;
}

/* ── Right: form panel ──────────────────────────────────── */

.panel-form {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 60px 40px;
}

.form-box {
    width: 100%;
    max-width: 380px;
}

.form-heading {
    margin-bottom: 36px;
}

.form-heading h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.01em;
}

.form-heading p {
    font-size: 15px;
    color: #888;
    margin-top: 6px;
    font-weight: 400;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 6px;
}

.form-control {
    display: block;
    width: 100%;
    height: 48px;
    border: 1.5px solid #dadada;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #000;
    padding: 0 14px;
    transition: border-color 0.2s;
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #000;
    background-color: #fff;
    box-shadow: none;
}

.form-control::placeholder {
    color: #bbb;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
}

.btn-login {
    display: block;
    width: 100%;
    height: 48px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.btn-login:hover {
    background-color: #212121;
}

.btn-login:active {
    background-color: #3f3f3f;
}

.form-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.05em;
}

/* ── Error messages ─────────────────────────────────────── */

.alert-login {
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-login.error {
    background-color: #fdf2f2;
    border: 1.5px solid #f5c2c2;
    color: #c00;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .panel-brand {
        flex: 0 0 auto;
        padding: 48px 24px;
    }

    .brand-logo {
        width: 120px;
        margin-bottom: 20px;
    }

    .brand-name {
        font-size: 17px;
    }

    .panel-form {
        flex: 1 1 auto;
        padding: 48px 24px;
    }
}

@media (max-width: 480px) {
    .panel-brand {
        padding: 36px 20px;
    }

    .panel-form {
        padding: 36px 20px;
    }

    .form-heading h2 {
        font-size: 22px;
    }
}
