/* ========================================
   TactyTestPortal - Stylesheet
   Brand colors:
   - Teal:    #00BFA5
   - Dark:    #111827
   - Gray:    #6B7280
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #00BFA5;
    --teal-dark: #00997f;
    --teal-light: #E8F8F5;
    --dark: #111827;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --bg-light: #F9FAFB;
    --border: #E0E0E0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Split-screen layout --- */

.page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- Linker paneel: Branding --- */

.brand-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #e8f4f8 60%, #d1ecf0 100%);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 191, 165, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 191, 165, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* --- Logo linksboven --- */

.brand-logo-corner {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.logo-img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
}

/* --- Brand content --- */

.brand-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    z-index: 1;
    max-width: 500px;
    width: 100%;
    padding-top: 40px;
}

/* --- Omgeving banner --- */

.env-banner {
    text-align: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(0, 191, 165, 0.15);
    width: 100%;
}

.env-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.env-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray);
    line-height: 1.5;
}

/* --- Camera --- */

.camera-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.camera-img {
    max-width: 380px;
    max-height: 45vh;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.18));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* --- Tagline --- */

.brand-tagline {
    text-align: center;
}

.tagline-main {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.tagline-accent {
    font-size: 22px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: -0.5px;
}

/* --- Rechter paneel: Formulier --- */

.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 40px;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 30px;
}

.logo-img-small {
    max-width: 150px;
    height: auto;
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* --- Form elementen --- */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    background: var(--bg-light);
}

.form-group input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.1);
    background: #ffffff;
}

.form-group input::placeholder {
    color: #9CA3AF;
}

.form-options {
    text-align: right;
    margin-top: -8px;
}

.link-forgot {
    font-size: 13px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.link-forgot:hover {
    color: var(--teal);
}

/* --- Buttons --- */

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--dark);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

.btn-primary:hover {
    background: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 165, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.15);
}

.btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: 16px;
}

.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-light);
}

/* --- Divider --- */

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-light);
}

.divider span {
    padding: 0 16px;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

/* --- Create account sectie --- */

.create-account-section {
    text-align: center;
}

.create-account-section p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
}

.link-create-account {
    font-size: 15px;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    transition: all 0.2s;
}

.link-create-account:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}

/* --- Alerts --- */

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.alert-info {
    background: var(--teal-light);
    color: var(--teal-dark);
    border: 1px solid #B8E5DC;
}

/* ========================================
   Fase 3 uitbreidingen — Registratie
   ======================================== */

/* --- Success alert --- */
.alert-success {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

/* --- Warning alert --- */
.alert-warning {
    background: #FFFBEB;
    color: #D97706;
    border: 1px solid #FDE68A;
}

/* --- Form row (naast elkaar) --- */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- Form hint --- */
.form-hint {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 6px;
    font-weight: 400;
    display: block;
}

/* --- Error list --- */
.alert-error ul {
    margin: 0;
    padding-left: 20px;
}

.alert-error ul li {
    margin-bottom: 4px;
}

.alert-error ul li:last-child {
    margin-bottom: 0;
}

/* --- Responsive: mobiel --- */

@media (max-width: 900px) {
    .page-wrapper {
        flex-direction: column;
    }

    .brand-panel {
        min-height: 280px;
        padding: 24px;
        order: 1;
    }

    .brand-logo-corner {
        position: static;
        text-align: center;
        margin-bottom: 16px;
    }

    .logo-img {
        max-width: 130px;
    }

    .brand-content {
        padding-top: 0;
        gap: 20px;
    }

    .env-banner {
        padding: 12px 16px;
    }

    .env-title {
        font-size: 16px;
    }

    .env-subtitle {
        font-size: 12px;
    }

    .camera-img {
        max-width: 250px;
        max-height: 200px;
    }

    .tagline-main,
    .tagline-accent {
        font-size: 18px;
    }

    .mobile-logo {
        display: block;
    }

    .brand-logo-corner {
        display: none;
    }

    .form-panel {
        padding: 24px;
        order: 2;
    }
}