/* === ZMIENNE === */
:root {
    --ap-primary: #2563eb;
    --ap-primary-hover: #1d4ed8;
    --ap-success: #10b981;
    --ap-error: #ef4444;
    --ap-text: #1f2937;
    --ap-text-light: #6b7280;
    --ap-border: #e5e7eb;
    --ap-bg: #f9fafb;
    --ap-white: #ffffff;
    --ap-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --ap-radius: 12px;
}

/* === CONTAINER === */
.ap-auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* === CARD === */
.ap-auth-card {
    background: var(--ap-white);
    backdrop-filter: blur(10px);
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === TITLE === */
.ap-auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--ap-text);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* === TABS === */
.ap-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--ap-border);
}

.ap-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--ap-text-light);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.ap-tab:hover {
    color: var(--ap-primary);
}

.ap-tab.active {
    color: var(--ap-primary);
    border-bottom-color: var(--ap-primary);
}

/* === MESSAGES === */
.ap-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.ap-message h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.ap-message p {
    margin: 0;
}

.ap-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.ap-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.ap-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* === FORM === */
.ap-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ap-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ap-form-group {
    display: flex;
    flex-direction: column;
}

.ap-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ap-text);
    margin-bottom: 0.5rem;
}

.ap-form-group input[type="text"],
.ap-form-group input[type="email"],
.ap-form-group input[type="password"] {
    padding: 0.75rem 1rem;
    border: 2px solid var(--ap-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--ap-white);
}

.ap-form-group input:focus {
    outline: none;
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ap-form-group small {
    font-size: 0.8rem;
    color: var(--ap-text-light);
    margin-top: 0.25rem;
}

/* === CHECKBOX === */
.ap-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ap-text);
    font-weight: 400;
    cursor: pointer;
}

.ap-checkbox input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

.ap-checkbox a {
    color: var(--ap-primary);
    text-decoration: underline;
}

/* === BUTTON === */
.ap-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.ap-btn-primary {
    background: var(--ap-primary);
    color: var(--ap-white);
}

.ap-btn-primary:hover {
    background: var(--ap-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ap-btn-primary:active {
    transform: translateY(0);
}

/* === FOOTER === */
.ap-form-footer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--ap-text-light);
    margin-top: 0.5rem;
}

.ap-form-footer a {
    color: var(--ap-primary);
    text-decoration: none;
    font-weight: 500;
}

.ap-form-footer a:hover {
    text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .ap-auth-card {
        padding: 1.5rem;
    }
    
    .ap-form-row {
        grid-template-columns: 1fr;
    }
    
    .ap-auth-title {
        font-size: 1.5rem;
    }
}
