* {
    box-sizing: border-box;
}

.auth-card h1,
.auth-card .muted {
    text-align: center;
}

.login-logo {
    display: block;
    width: 108px;
    height: auto;
    margin: 0 auto 14px;
}

html, body {
    height: 100%;
}

body.auth-page {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f3f3;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #efefef;
    border: 2px solid #d7d7d7;
    border-radius: 24px;
    padding: 28px 26px 24px;
}

.auth-card h1 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
}

.muted {
    margin: 0 0 22px;
    color: #5f5f5f;
    font-size: 16px;
    line-height: 1.4;
}

.stack > div + div,
.stack > button,
.stack > p {
    margin-top: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #111;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    height: 44px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #ffffff;
    padding: 0 12px;
    font-size: 16px;
    color: #111;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.btn {
    display: inline-block;
    min-width: 150px;
    height: 44px;
    border: 1px solid #111;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 16px;
    transition: opacity 0.15s ease, transform 0.05s ease;
}

.btn.primary {
    background: #111;
    color: #fff;
}

.btn:hover {
    opacity: 0.92;
}

.btn:active {
    transform: translateY(1px);
}

.small {
    margin-top: 18px;
    font-size: 15px;
    color: #4f4f4f;
}

.small a {
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #111;
    padding-bottom: 1px;
}

.alert {
    margin-bottom: 16px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
}

.alert.error {
    background: #f8dede;
    color: #8c1c1c;
}

.alert.success {
    background: #dff3e3;
    color: #1f6b31;
}


@media (max-width: 640px) {
    body.auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 22px 18px 20px;
        border-radius: 20px;
    }

    .auth-card h1 {
        font-size: 24px;
          align: center;
    }

    .muted {
        font-size: 15px;
        align: center;
    }

    label,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    .btn {
        font-size: 15px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    .btn {
        height: 42px;
    }
}