* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(127, 191, 149, 0.26), transparent 30%),
        radial-gradient(circle at bottom right, rgba(189, 224, 197, 0.55), transparent 26%),
        linear-gradient(135deg, #f7faf5 0%, #eef5ee 45%, #f6faf4 100%);
    color: #1f2f24;
}

a {
    color: #2f7d4c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(31, 58, 44, 0.08);
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(31, 58, 44, 0.12);
    padding: 32px;
    backdrop-filter: blur(10px);
}

.auth-card-wide {
    max-width: 640px;
}

.auth-header {
    margin-bottom: 24px;
}

.auth-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #1f2f24;
}

.auth-header p {
    margin: 0;
    color: #627465;
}

form {
    display: grid;
    gap: 14px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #3d5a46;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(31, 58, 44, 0.14);
    border-radius: 12px;
    font-size: 15px;
    color: #1f2f24;
    background: rgba(248, 251, 247, 0.95);
}

input:focus {
    outline: none;
    border-color: #2f7d4c;
    box-shadow: 0 0 0 4px rgba(47, 125, 76, 0.12);
}

button {
    border: none;
    border-radius: 12px;
    padding: 13px 16px;
    background: #2f7d4c;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
    background: #245f39;
    transform: translateY(-1px);
}

.button-secondary {
    background: #21392a;
}

.button-secondary:hover {
    background: #2b4a35;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-error {
    background: #fff3f1;
    color: #ab3f31;
    border: 1px solid #f1c8c0;
}

.alert-success {
    background: #edf8ef;
    color: #296741;
    border: 1px solid #bfe2c9;
}

.alert-info {
    background: #eef6ef;
    color: #2f6641;
    border: 1px solid #cde1d0;
}

.auth-links {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
}

.auth-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: #21392a;
    color: #ffffff;
    font-weight: 600;
}

.auth-button-link:hover {
    background: #2b4a35;
    text-decoration: none;
}

.dashboard-panel {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    margin-bottom: 18px;
}
