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

html,
body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background: #121212;
    color: #f0f0f0;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 204, 255, 0.08) 0%, rgba(255, 51, 204, 0.08) 50%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: #00CCFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
.btn {
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    outline: none;
}

.btn-primary {
    padding: 12px 20px;
    background: #00CCFF;
    color: #000;
}

.btn-primary:hover {
    background: #0099cc;
    color: #fff;
}

.btn-outline {
    padding: 12px 20px;
    background: transparent;
    color: #00CCFF;
    border: 2px solid #00CCFF;
}

.btn-outline:hover {
    background: #00ccff;
    color: #000;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 55px;
    min-height: 55px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00CCFF;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    height: 100%;
    line-height: 55px; /* Dopasowanie wysokości linii */
}

.brand-link i {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-link:hover {
    text-decoration: none;
}

.auth-hero-section {
    position: relative;
    text-align: center;
    padding: 120px 20px 100px;
    background: linear-gradient(135deg, #00CCFF, #fc5c7d);
    overflow: hidden;
    width: 100%;
    margin-bottom: -1px;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.auth-hero-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.auth-hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-hero-title span {
    color: #fff;
    font-weight: 700;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.auth-hero-title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 8px;
    background: #fc5c7d;
    z-index: -1;
    opacity: 0.6;
}

.auth-hero-subtitle {
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

.wave {
    display: none;
}

.auth-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    padding: 40px 20px;
    max-width: 1300px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.4s ease forwards;
    opacity: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.form-group label {
    font-size: 1rem;
    color: #bbb;
}

.form-group input {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #444;
    border-radius: 5px;
    background: #222;
    color: #fff;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #00CCFF;
    outline: none;
}

.error-message {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

.hidden {
    display: none !important;
}

.confirmation-message {
    text-align: center;
    color: #bbb;
    font-size: 1rem;
    padding: 20px 0;
}

/* Ulepszony styl dla sekcji auth-info */
.auth-info {
    max-width: 500px;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 1.6s ease forwards;
    opacity: 0;
    border: 1px solid rgba(80, 80, 80, 0.2);
}

.auth-info h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.auth-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00ccff, #00a3cc);
    border-radius: 3px;
}

.auth-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #e0e0e0;
    line-height: 1.6;
}

.auth-info ul li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    padding-bottom: 20px;
}

.auth-info ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-info ul li i {
    color: #00ccff;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.2), rgba(252, 92, 125, 0.2));
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 2px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 204, 255, 0.2);
    transition: all 0.3s ease;
}

.auth-info ul li:hover i {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.3), rgba(252, 92, 125, 0.3));
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 204, 255, 0.3);
}

.auth-info ul li .benefit-content {
    flex: 1;
}

.auth-info ul li .benefit-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    display: block;
    font-size: 1.05rem;
}

.auth-info ul li .benefit-description {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-info p {
    margin-top: 25px;
    color: #ccc;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guest-option {
    text-align: center;
    margin-top: 20px;
    color: #bbb;
}

.guest-option p {
    margin-bottom: 10px;
}

.forgot-password {
    text-align: right;
    font-size: 0.85rem;
    color: #bbb;
    margin-top: 5px;
}

.forgot-password:hover {
    color: #00ccff;
}

/* Social login buttons styling */
.social-login-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-login-title {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #bbb;
    font-size: 0.9rem;
    text-align: center;
}

.social-login-btn {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #2a2a2a;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Google button specific hover */
#google-login-btn:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

/* Google button specific styling */
#google-login-btn {
    background: #ffffff;
}

#google-login-btn i {
    color: #4285F4;
    font-size: 1.8rem;
}

/* Apple button specific styling */
.apple-btn {
    background: #2a2a2a;
    overflow: hidden;
    position: relative;
}

/* Override Apple's default button styling */
#appleid-signin {
    min-width: 50px !important;
    max-width: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    border-radius: 10px !important;
    padding: 0 !important;
}

/* Fix for Apple button internal elements */
#appleid-signin > div {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #2a2a2a !important;
}

#appleid-signin svg, 
#appleid-signin img {
    display: none !important;
}

/* OAuth Loading Overlay and Spinner */
#oauth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.oauth-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 204, 255, 0.2);
    border-top: 4px solid #00CCFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .auth-section {
        flex-direction: column;
        align-items: center;
    }

    .auth-info {
        max-width: 600px;
        margin-top: -10px;
    }

    .auth-card {
        max-width: 600px;
    }

    .auth-hero-title {
        font-size: 1.6rem;
    }

    .auth-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .auth-info {
        padding: 20px;
    }
    
    .auth-info ul li {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    
    .auth-info ul li .benefit-title {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .nav-bar {
        height: 45px;
        min-height: 45px;
    }
    
    .brand-link {
        line-height: 45px;
        font-size: 1.2rem;
    }

    .brand-link i {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .nav-bar {
        padding: 0 15px;
        height: 40px;
        min-height: 40px;
    }
    
    .brand-link {
        line-height: 40px;
        font-size: 1.1rem;
    }
    
    .brand-link i {
        font-size: 1.3rem;
    }
    
    .auth-info h2 {
        font-size: 1.3rem;
    }
    
    .auth-info ul li {
        gap: 10px;
    }
    
    .auth-info ul li i {
        width: 22px;
        height: 22px;
        font-size: 0.9rem;
    }
    
    .auth-info ul li .benefit-title {
        font-size: 0.95rem;
    }
    
    .auth-info ul li .benefit-description {
        font-size: 0.9rem;
    }
    
    /* Social login buttons responsive styling */
    .social-login-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    #appleid-signin {
        min-width: 45px !important;
        max-width: 45px !important;
        min-height: 45px !important;
        max-height: 45px !important;
    }
}