﻿:root {
    /* Podstawowa paleta kolorów */
    --primary-color: #6C63FF;
    --primary-light: #8B84FF;
    --primary-dark: #5248FF;
    --secondary-color: #FF6584;
    --secondary-light: #FF89A0;
    --secondary-dark: #FF4168;
    /* Tło i powierzchnie */
    --background-color: #0F0E17;
    --surface-color: #1A1926;
    --surface-light: #252434;
    --surface-dark: #121219;
    /* Kolory tekstu */
    --text-color: #FFFFFE;
    --text-muted: #A7A9BE;
    --text-disabled: #666876;
    /* Akcenty i granice */
    --border-color: #2E2F3E;
    --border-light: #3E3F4E;
    --hover-color: #252434;
    --active-color: #3E3D53;
    /* Cienie */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Reset i podstawowe style */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Układ strony */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Nagłówek */
header {
    background-color: var(--surface-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

/* Logo */
h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

    h1:hover {
        color: var(--primary-light);
    }

/* Nawigacja */
nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

    nav a {
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
    }

        nav a:hover {
            color: var(--text-color);
            background-color: var(--hover-color);
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background-color: var(--primary-color);
            transition: width 0.3s ease;
        }

        nav a:hover::after {
            width: 80%;
        }

/* Główna zawartość */
main {
    flex: 1;
    padding: 4rem 0;
}

/* Sekcja hero */
.hero {
    text-align: center;
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0%, 100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(30deg);
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Przyciski */
.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: var(--text-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.2);
    border: none;
    cursor: pointer;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
        background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    }

/* Sekcja funkcji */
.features {
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    margin-top: 4rem;
    border: 1px solid var(--border-color);
}

h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 700;
}

.features ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.features li {
    padding: 1.5rem;
    background-color: var(--surface-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

    .features li:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .features li::before {
        content: '→';
        color: var(--primary-color);
        margin-right: 1rem;
        font-weight: bold;
    }

/* Formularze */
form {
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    margin: 2rem auto;
    border: 1px solid var(--border-color);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
    background-color: var(--surface-light);
    color: var(--text-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    input[type="text"]:focus,
    input[type="password"]:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
    }

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

    button[type="submit"]:hover {
        background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(108, 99, 255, 0.2);
    }

/* Komunikaty o błędach */
.error {
    color: var(--secondary-color);
    background-color: rgba(255, 101, 132, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--secondary-color);
    font-weight: 500;
}

/* Stopka */
footer {
    background-color: var(--surface-color);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

    footer p {
        font-size: 0.9rem;
    }

/* Responsywność */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

        nav a {
            font-size: 1rem;
            padding: 0.5rem;
        }

    .hero {
        padding: 2rem 0;
    }

    h2 {
        font-size: 2.5rem;
    }

    .features {
        padding: 1.5rem;
    }

    form {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .features, form {
    animation: fadeIn 0.8s ease-out;
}
