html,
body.veag-auth-template,
body.page-template,
body {
    min-height: 100%;
}

.veag-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 18% 18%, rgba(28, 201, 194, 0.18), transparent 32%),
        radial-gradient(circle at 82% 20%, rgba(31, 111, 184, 0.18), transparent 34%),
        linear-gradient(135deg, #071827 0%, #0d2438 48%, #eef7fb 48.1%, #f7fbff 100%);
    box-sizing: border-box;
}

.veag-auth-card {
    width: min(100%, 460px);
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 30px 80px rgba(7, 24, 39, 0.26);
    backdrop-filter: blur(16px);
}

.veag-auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.veag-auth-brand img {
    display: block;
    width: min(320px, 82%);
    height: auto;
    object-fit: contain;
}

.veag-auth-copy {
    text-align: center;
    margin-bottom: 24px;
}

.veag-auth-kicker {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(28, 201, 194, 0.12);
    color: #0b5f68;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.veag-auth-copy h1 {
    margin: 0 0 8px;
    color: #082037;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.veag-auth-copy p {
    margin: 0;
    color: #567086;
    line-height: 1.5;
}

.veag-auth-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-weight: 700;
    font-size: 14px;
}

.veag-auth-form {
    display: grid;
    gap: 10px;
}

.veag-auth-form label {
    color: #16324c;
    font-weight: 800;
    font-size: 13px;
}

.veag-auth-form input[type="text"],
.veag-auth-form input[type="password"] {
    width: 100%;
    border: 1px solid #cbdbe7;
    border-radius: 14px;
    padding: 13px 14px;
    color: #082037;
    background: #fff;
    box-sizing: border-box;
    font-size: 15px;
}

.veag-auth-form input:focus {
    outline: none;
    border-color: #1cc9c2;
    box-shadow: 0 0 0 4px rgba(28, 201, 194, 0.16);
}

.veag-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 8px 0 12px;
    font-size: 13px;
}

.veag-auth-row a {
    color: #0b5f99;
    font-weight: 800;
    text-decoration: none;
}

.veag-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700 !important;
    color: #567086 !important;
}

.veag-auth-submit {
    min-height: 48px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #1cc9c2, #1f6fb8);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(31, 111, 184, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.veag-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(31, 111, 184, 0.28);
}

@media (max-width: 640px) {
    .veag-auth-page { padding: 18px; }
    .veag-auth-card { padding: 24px; border-radius: 22px; }
    .veag-auth-copy h1 { font-size: 30px; }
    .veag-auth-row { align-items: flex-start; flex-direction: column; }
}

/* v0.4.2 transparent logo + mobile auth polish */
.veag-auth-brand img {
    width: min(360px, 88%) !important;
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 12px 24px rgba(7, 24, 39, 0.10));
}

@media (max-width: 520px) {
    .veag-auth-page {
        padding: 14px !important;
        align-items: stretch;
    }

    .veag-auth-card {
        width: 100%;
        align-self: center;
        padding: 22px !important;
    }

    .veag-auth-brand img {
        width: min(300px, 94%) !important;
    }
}

.veag-login-logo img,
.veag-auth-logo img {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

@media (max-width: 520px) {
    .veag-login-logo img,
    .veag-auth-logo img {
        max-width: 180px;
    }
}