@import url('/NexLearn/public/css/main.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: var(--color-black);
    min-height: 100vh;
}

.container {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem 2.5rem;
}

/* Logo */
.logo {
    margin-bottom: 1.2rem;
}

.logo img {
    height: 48px;
    width: auto;
}

/* Title */
.title {
    text-align: center;
    margin-bottom: 30px;
}

.title h1 {
    color: #fff;
    font-size: clamp(26px, 5vw, 32px);
    font-weight: bold;
}

.title span {
    color: var(--color-orange);
}

.title p {
    color: #aaa;
    font-size: 14px;
    margin-top: 8px;
}

/* Card */
.card {
    background: var(--color-black);
    padding: 30px;
    border-radius: 12px;
    width: min(350px, 100%);
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

/* Inputs */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    color: #aaa;
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    outline: none;
    background: var(--color-black);
    color: #fff;
    font-size: 14px;
    transition: border-color .2s;
}

.form-group input:focus {
    border-color: var(--color-orange);
}

/* Veldfout onder input */
.field-error {
    display: block;
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px; /* voorkomt layout-sprong */
}

/* Button */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--color-orange);
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(255,106,0,0.4);
    transition: opacity .2s;
}

button[type="submit"]:hover { opacity: 0.9; }
button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* Succes / foutbanner bovenaan het formulier */
.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: center;
}

.auth-alert.alert-success {
    background: #0d2e1a;
    color: #2ecc71;
    border: 1px solid #1a5c35;
}

.auth-alert.alert-error {
    background: #2e0d0d;
    color: #ff4d4d;
    border: 1px solid #5c1a1a;
}

/* Footer tekst */
.Go-to-login {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #aaa;
}

.Go-to-login a {
    color: var(--color-orange);
    text-decoration: none;
}

.Go-to-login a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem 2rem;
    }

    .logo img {
        height: 42px;
    }

    .title {
        margin-bottom: 22px;
    }

    .title p {
        font-size: 13px;
    }

    .card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .form-group input,
    button[type="submit"] {
        padding: 12px;
    }

    .Go-to-login {
        font-size: 12px;
    }
}
