/* Import czcionki Inter używanej w index-mobile.php */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    /* bg-slate-950 */
    background-color: #020617; 
    color: #e2e8f0; /* text-slate-200 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    /* bg-slate-900 */
    background-color: #0f172a;
    padding: 2.5rem;
    border-radius: 1.5rem; /* Odpowiednik rounded-3xl */
    /* border-slate-800 */
    border: 1px solid #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); /* shadow-2xl */
    width: 100%;
    max-width: 400px;
}

/* --- BRANDING (Nowa sekcja) --- */
.brand-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Wyśrodkowanie całości */
    gap: 0.75rem; /* gap-3 */
    margin-bottom: 2rem;
}

.brand-logo {
    width: 2.5rem; /* w-10 */
    height: 2.5rem; /* h-10 */
    border-radius: 0.5rem; /* rounded-lg */
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.875rem; /* text-3xl */
    line-height: 1;
    font-weight: 700;
    margin: 0;
    /* Gradient dokładnie jak w index-mobile.php */
    background: linear-gradient(to right, #a78bfa, #d946ef); /* from-violet-400 to-fuchsia-500 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    font-size: 0.75rem; /* text-xs */
    color: #64748b; /* text-slate-500 */
    text-transform: uppercase;
    letter-spacing: 0.1em; /* tracking-widest */
    margin: 0.125rem 0 0 0;
}
/* ----------------------------- */

/* Usunięto globalny styl H1/H2 z gradientem, 
   aby nie kolidował z nagłówkami formularzy (Logowanie/Rejestracja),
   które powinny być prostsze */
h1, h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #94a3b8; /* text-slate-400 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    /* bg-slate-800 */
    background-color: #1e293b;
    /* border-slate-700 */
    border: 1px solid #334155;
    color: #fff;
    border-radius: 0.75rem; /* rounded-xl */
    box-sizing: border-box;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus {
    /* ring-violet-500 border-violet-500 */
    border-color: #8b5cf6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.btn {
    width: 100%;
    padding: 0.875rem;
    /* bg-violet-600 */
    background-color: #7c3aed;
    color: white;
    border: none;
    border-radius: 0.75rem; /* rounded-xl */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    /* hover:bg-violet-500 */
    background-color: #8b5cf6;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background-color: #475569; /* slate-600 */
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.btn-danger {
    background-color: #ef4444; /* red-500 */
    margin-top: 1rem;
}

.btn-danger:hover {
    background-color: #dc2626; /* red-600 */
}

.links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.links a {
    color: #a78bfa; /* violet-400 */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.links a:hover {
    color: #d946ef; /* fuchsia-500 */
    text-decoration: none;
}

/* Alerty dopasowane do Dark Mode */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
}