/* c:/Users/mkali/Desktop/projekt_baza_danych/style.css */
/* opis: Style wizualne dla aplikacji MDCollector */
/* autor: Marcin Kalisiak */

:root {
    --primary-color: #1a73e8;
    --bg-color: #f0f2f5;
    --text-color: #3c4043;
    --border-radius: 12px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    width: 95%;
    max-width: 900px;
    margin: 2rem;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-section {
    grid-column: 1 / -1;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    border-radius: 4px;
}

.form-section h4 {
    margin: 0;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.hgf-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    background: #fff;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.med-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: #fdfdfd;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.med-row-3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    background: #fdfdfd;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.form-group.compact {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.form-group.compact label {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

input[type="password"], 
input[type="text"], 
input[type="number"], 
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.btn-main, button {
    display: inline-block;
    width: auto;
    min-width: 260px;
    padding: 0.9rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 1.5rem auto;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.15);
    text-align: center;
}

.btn-main:hover, button:hover {
    background: #1557b0;
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.25);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}


/* Sekcje autoryzacji */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s;
}

.auth-box:hover {
    transform: translateY(-2px);
}

.auth-box h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.instruction {
    background: #fff8e1;
    border-left: 5px solid #ffb300;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    color: #5d4037;
    line-height: 1.6;
}

.instruction h2 {
    color: #ff8f00;
    margin-top: 0;
    font-size: 1.4rem;
}

.message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #c8e6c9;
    text-align: center;
}

.status.error {
    background: #fde8e8;
    color: #c81e1e;
    border: 1px solid #f8b4b4;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

hr {
    border: 0;
    border-top: 1px solid #e8eaed;
    margin: 2rem 0;
}
