﻿/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
    background-image: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.07) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Card ── */
.card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.09);
    padding: 40px;
    margin: 24px;
}

/* ── Logo ── */
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

    .logo img {
        max-height: 48px;
        max-width: 180px;
        object-fit: contain;
    }

/* ── Heading ── */
.heading {
    text-align: center;
    margin-bottom: 24px;
}

    .heading h1 {
        font-size: 22px;
        font-weight: 600;
        color: #111827;
        letter-spacing: -0.3px;
    }

    .heading p {
        margin-top: 6px;
        font-size: 14px;
        color: #6b7280;
    }

/* ── Validation Summary ── */
.validation-summary-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #dc2626;
}

    .validation-summary-errors ul {
        list-style: none;
        padding: 0;
    }

        .validation-summary-errors ul li::before {
            content: '· ';
        }

/* ── Form ── */
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-field label {
        font-size: 13px;
        font-weight: 500;
        color: #374151;
    }

.input-wrapper {
    position: relative;
}

    .input-wrapper .input-icon {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: #9ca3af;
        pointer-events: none;
    }

    .input-wrapper input {
        width: 100%;
        height: 42px;
        padding: 0 14px 0 40px;
        border: 1.5px solid #e5e7eb;
        border-radius: 8px;
        font-size: 14px;
        color: #111827;
        background: #fafafa;
        transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
        outline: none;
        appearance: none;
    }

        .input-wrapper input::placeholder {
            color: #9ca3af;
        }

        .input-wrapper input:focus {
            border-color: #6366f1;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
        }

        .input-wrapper input.input-validation-error {
            border-color: #f87171;
        }

/* ── Forgot password ── */
.form-row-inline {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.link {
    font-size: 13px;
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

    .link:hover {
        color: #096dd9;
    }

/* ── Submit button ── */
.btn {
    width: 100%;
    height: 42px;
    margin-top: 8px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

    .btn:hover {
        background: #096dd9;
        box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
    }

    .btn:active {
        transform: translateY(1px);
        box-shadow: 0 1px 4px rgba(99, 102, 241, 0.3);
    }

.btn-link {
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: 42px;
}

.footnote {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

.eu-sponsor {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

    .eu-sponsor img {
        max-width: 160px;
        opacity: 0.85;
    }

/* ── Responsive ── */
@media (max-width: 480px) {
    .card {
        padding: 36px 28px 32px;
    }
}
