* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    padding: 40px 16px;
    background: #f6f7f9;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding: 32px 24px 28px;
}

.card h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
}

.input {
    display: block;
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    font: inherit;
    font-size: 17px;
    color: #111;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
}

.input::placeholder { color: #777; }

.input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, .15);
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary { background: #28a745; color: #fff; }
.btn-primary:hover { background: #218838; }

.btn-google { background: #fff; color: #333; border: 1px solid #ccc; }
.btn-google:hover { background: #f5f5f5; }

.btn-light { background: #f1f3f5; color: #333; }
.btn-light:hover { background: #e4e7ea; }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 14px;
    color: #888;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e3e3;
}

.switch {
    margin: 20px 0 0;
    text-align: center;
    font-size: 15px;
    color: #555;
}

.switch a {
    color: #28a745;
    font-weight: 700;
    text-decoration: none;
}

.switch a:hover { text-decoration: underline; }

.alert {
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 15px;
    border-radius: 5px;
    background: #fdecea;
    color: #b42318;
    border: 1px solid #f5c2c0;
}

.profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.profile img,
.profile .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile .avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #28a745;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.profile .meta { font-size: 15px; color: #555; line-height: 1.5; }
.profile .meta strong { display: block; font-size: 18px; color: #111; }

.card form + form { margin-top: 12px; }
