* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #24262B;
    color: #ffffff;
}

h1 {
    margin:0 0 12px;
}

/* Wrapper */
.flex-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    width: 100%;
    padding: clamp(20px, 5vw, 60px);
}

/* Login Box (desktop/tablet default) */
.login_container {
    background-color: rgba(0, 0, 0, 0.2);
    padding: clamp(28px, 6vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    width: min(100%, 480px);
}

/* Inputs */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    display: block;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 18px;
}

/* Button */
button[type="submit"] {
    width: 100%;
    background-color: #1C2532;
    color: white;
    padding: 16px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 18px;
}

button[type="submit"]:hover {
    background-color: #1b833d;
}

button[type="submit"]:active {
    background-color: #16632a;
}

/* Signup Text */
.signup-link {
    margin-top: 18px;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
}

.signup-link a {
    color: #1b833d;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* MOBILE: Make login full-screen */
@media (max-width: 600px) {
    .flex-wrapper {
        padding: 0;
        min-height: 100dvh;
        align-items: stretch;
        justify-content: stretch;
    }

    .login_container {
        width: 100%;
        height: 100dvh;
        max-width: none;

        /* Remove box appearance */
        background: transparent;
        box-shadow: none;
        border-radius: 0;

        /* Layout */
        padding: 32px 24px;
        justify-content: center;
    }

    h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 20px;
        padding: 18px;
        margin: 14px 0;
    }

    button[type="submit"] {
        font-size: 20px;
        padding: 18px;
        margin-top: 12px;
    }

    .signup-link {
        font-size: 16px;
        margin-top: 20px;
    }
}


/* 📱 TABLET */
@media (min-width: 481px) and (max-width: 1024px) {
    .login_container {
        width: min(100%, 520px);
    }

    input[type="text"],
    input[type="password"],
    button[type="submit"] {
        font-size: 18px;
        padding: 15px;
    }

    .signup-link {
        font-size: 15px;
    }
}
