/**
 * Password Forms - Style CSS
 * Wspolne style dla: reset-hasla.php, zmien-haslo.php
 * Wydzielone 2026-01-25
 *
 * Kolory marki:
 * - BRAND_GREEN: #6DAD21
 * - BRAND_GREEN_DARK: #5a9a1a
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: url('/images/grass-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: -1;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    max-width: 440px;
    width: 100%;
    padding: 48px 40px;
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.header p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.shop-name {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    text-align: center;
}

.shop-name strong {
    color: #166534;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: #6DAD21;
    box-shadow: 0 0 0 3px rgba(109, 173, 33, 0.1);
}

.password-hint {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #6DAD21;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #5a9a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(109, 173, 33, 0.3);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.success-message {
    background: #f0fdf4;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid #22c55e;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #6DAD21;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Info box - uzywane w zmien-haslo.php */
.info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-box h3 {
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box ul {
    font-size: 13px;
    color: #0c4a6e;
    margin-left: 20px;
}

.info-box li {
    margin-bottom: 4px;
}

/* Invalid token - uzywane w reset-hasla.php */
.invalid-token {
    text-align: center;
    padding: 40px 20px;
}

.invalid-token h2 {
    color: #dc2626;
    margin-bottom: 16px;
}

.invalid-token p {
    color: #666;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .container {
        padding: 32px 24px;
    }
}
