
html, body, *, *:before, *:after {
    box-sizing: border-box;
}

body {
    background: hsl(0, 0%, 0%);
    font-family: "Inter", Helvetica, sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: hsl(0, 0%, 95%);
}

.auth-container {
    background: hsl(0, 0%, 10%);
    max-width: 500px;
    margin: 2rem auto;
    padding: 36px 40px 32px 40px;
    border-radius: 18px;
    flex-direction: column;
    align-items: center;
    border: 2px solid hsl(0, 0%, 30%);
    background: linear-gradient(0deg, hsl(0, 0%, 5%), hsl(0, 0%, 10%))
}

.auth-container h1 {
    margin-bottom: 0.7rem;
    color: hsl(0, 0%, 100%);
    font-weight: 700;
    font-size: 2rem;
    margin-top: 0;
}

.auth-container > div, .auth-container > form {
    width: 100%;
}

.google-btn, .apple-btn {
    width: 100%;
    padding: 0.85rem 0;
    background: hsl(240, 8%, 16%);
    color: hsl(0, 0%, 100%);
    border: none;
    border-radius: 10px;
    font-size: 1.08rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    cursor: pointer;
    border: 1.5px solid hsl(240, 13%, 26%);
    transition: background 0.2s, border 0.2s;
}
.google-btn:hover, .apple-btn:hover {
    background: hsl(240, 7%, 10%);
    border: 1.5px solid hsl(221, 100%, 66%);
}

.google-btn img {
    width: 22px;
    vertical-align: middle;
}

.apple-btn img {
    width: 22px;
    vertical-align: middle;
}

.divider {
    width: 100%;
    text-align: center;
    color: hsl(0, 0%, 67%);
    margin: 1.1rem 0 1.1rem 0;
    position: relative;
    font-size: 1.05rem;
}
.divider:before, .divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: hsl(240, 13%, 26%);
}
.divider:before {
    left: 0;
}
.divider:after {
    right: 0;
}

.form-group {
    width: 100%;
    margin-bottom: 1.1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: hsl(0, 0%, 100%);
    font-size: 1rem;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    margin: 0 auto;    /* centers the input */
    display: block;    /* required for margin auto */
    padding: 12px;
    border: 1.5px solid hsl(0, 0%, 50%);
    border-radius: 8px;
    font-size: 1rem;
    background: hsl(0, 0%, 10%);
    color: hsl(0, 0%, 95%);
    transition: border 0.2s, background 0.2s;
    align-items: center;
}
.form-group input:focus {
    border: 1.5px solid hsl(0, 0%, 50%);
    outline: none;
    background: hsl(0, 0%, 10%);
}

button[type="submit"] {
    width: 100%;
    padding: 0.9rem 0;
    background: hsl(0, 0%, 95%);
    color: hsl(0, 0%, 0%);
    border: none;
    border-radius: 10px;
    font-size: 1.13rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    margin-bottom: 0.7rem;
    transition: background 0.2s;
    box-shadow: 0 2px 8px hsla(266, 89%, 67%, 0.08);
}
button[type="submit"]:hover {
    background: hsl(120, 80%, 67.5%);
}

.signup-link, .forgot-link {
    width: 100%;
    text-align: center;
    margin-top: 0.7rem;
    color: hsl(0, 0%, 67%);
    font-size: 1.01rem;
}
.signup-link a, .forgot-link a {
    color: hsl(0, 0%, 100%);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.signup-link a:hover, .forgot-link a:hover {
    color: hsl(120, 80%, 67.5%);
}

.flashes {
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    background: hsl(0, 0%, 18%);
    border-radius: 8px;
    color: hsl(0, 0%, 95%);
    list-style: none;
    width: 100%;
    font-size: 0.98rem;
}
.flashes li {
    margin-bottom: 0.3rem;
}

@media (max-width: 600px) {
    .auth-container {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        max-width: 85%;
    }
}

/* Terms and footer */
.terms {
    margin-top: 2.2rem;
    color: hsl(0, 0%, 67%);
    font-size: 0.98rem;
    text-align: center;
}
.terms a {
    color: hsl(265, 97%, 60%);
    text-decoration: underline;
    font-weight: 500;
}
.terms a:hover {
    color: hsl(0, 0%, 100%);
}

.footer {
    margin-top: 1.5rem;
    color: hsl(0, 0%, 33%);
    font-size: 0.93rem;
    text-align: center;
}
