/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    font-family: Inter, system-ui, sans-serif;
    color: #d6d7db;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, #19313d 0%, #151924 100%);
}

p {
    color: #505965;
}

/* ===== LAYOUT ===== */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.text {
    text-align: center;
    margin-bottom: 30px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo:hover {
    cursor: pointer;
}

.logo img {
    width: 100px;
    aspect-ratio: 1 / 0.7;
    margin-right: -20px;
}

.logo span {
    font-size: 2rem;
}

/* ===== FORM ===== */
form {
    width: 100%;
    max-width: 380px; /* desktop max width */
    padding: 24px 20px;
    background-color: #cfd3d6;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

form label {
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

form input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background-color: #f5f5f5;
    color: #292929;
    font-weight: 500;
}

form input:focus {
    outline: 2px solid #1fa1ae;
}

/* ===== MESSAGE ===== */
form .message {
    width: 100%;
    padding: 3px 10px;
    border-radius: 4px;
    background-color: #ffd7da;
    border: 1px solid #ffc7cf;
    font-weight: 200;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

form .message span {
    color: #fc5353bb;
    font-size: .8rem;
    font-weight: bold;
}

/* ===== BUTTON ===== */
form button {
    width: 100%;
    height: 40px;
    background-color: #1fa1ae;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: 0.15s;
}

form button:hover {
    cursor: pointer;
    transform: scale(0.99);
    opacity: 0.9;
}

/* ===== LINKS ===== */
form p {
    font-size: 14px;
    font-weight: 500;
}

form p a {
    color: #1fa1ae;
    font-weight: bold;
    text-decoration: none;
}

form p a:hover {
    text-decoration: underline;
    cursor: pointer;
}


/* ===== RESPONSIVE ===== */

/* Small laptops: 901px – 1200px */
@media (max-width: 1200px) {
    form {
        max-width: 400px;
    }
}

/* Tablets: 481px – 900px */
@media (max-width: 900px) {
    form {
        max-width: 420px;
    }
    
    .text h1 {
        font-size: 1.8rem;
    }
}

/* Phones: ≤480px */
@media (max-width: 480px) {
    body {
        padding: 20px;
    }

    .logo img {
        width: 80px;
        margin-right: -12px;
    }

    .logo span {
        font-size: 1.6rem;
    }

    .text h1 {
        font-size: 1.6rem;
    }

    .text p {
        font-size: 0.95rem;
    }

    form {
        width: 100%;
        padding: 22px 18px;
    }

    form input,
    form button {
        height: 44px; /* touch-friendly */
    }
}