/* G24 Admin Panel Styles - v1.0 */
/* Wspólne style dla systemu G24 */

:root {
    --g24-primary: #1a365d;
    --g24-secondary: #2d3748;
    --g24-accent: #3182ce;
    --g24-light: #f7fafc;
    --g24-border: #e2e8f0;
    --g24-error: #e53e3e;
    --g24-success: #38a169;
    --g24-warning: #d69e2e;
    --g24-info: #3182ce;

    /* Glassmorphism colors */
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Global styles */
* {
    box-sizing: border-box;
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--g24-secondary);
}

/* Background patterns */
.g24-bg-gradient {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.g24-bg-grain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.02"/><circle cx="10" cy="50" r="0.5" fill="%23ffffff" opacity="0.02"/><circle cx="90" cy="30" r="0.5" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Layout utilities */
.g24-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* Card components */
.g24-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow),
    0 15px 35px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 50px 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.g24-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--g24-primary), var(--g24-accent), var(--g24-primary));
    border-radius: 24px 24px 0 0;
}

/* Brand components */
.g24-brand-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.g24-logo-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--g24-primary), var(--g24-accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
    position: relative;
}

.g24-logo-container::after {
    content: 'G24';
    color: white;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.g24-brand-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--g24-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.g24-brand-subtitle {
    color: var(--g24-secondary);
    font-size: 16px;
    opacity: 0.8;
}

/* Error page specific */
.g24-error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--g24-primary);
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.g24-error-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--g24-secondary);
    margin-bottom: 16px;
}

.g24-error-message {
    color: #718096;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Button components */
.g24-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--g24-primary), var(--g24-accent));
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.g24-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.g24-btn:hover::before {
    left: 100%;
}

.g24-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.4);
}

.g24-btn:active {
    transform: translateY(0);
}

.g24-btn-secondary {
    background: transparent;
    border: 2px solid var(--g24-border);
    color: var(--g24-secondary);
    box-shadow: none;
}

.g24-btn-secondary:hover {
    background: var(--g24-light);
    border-color: var(--g24-accent);
    color: var(--g24-accent);
}

/* Alert components */
.g24-alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.g24-alert-danger {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    border-left: 4px solid var(--g24-error);
}

.g24-alert-success {
    background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
    color: #22543d;
    border-left: 4px solid var(--g24-success);
}

.g24-alert-warning {
    background: linear-gradient(135deg, #fef5e7, #fdeaa7);
    color: #744210;
    border-left: 4px solid var(--g24-warning);
}

.g24-alert-info {
    background: linear-gradient(135deg, #bee3f8, #90cdf4);
    color: #2a4365;
    border-left: 4px solid var(--g24-info);
}

/* Form components */
.g24-form-group {
    margin-bottom: 24px;
    position: relative;
}

.g24-form-label {
    font-weight: 500;
    color: var(--g24-secondary);
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.g24-form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--g24-border);
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.g24-form-control:focus {
    border-color: var(--g24-accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.g24-form-control::placeholder {
    color: #a0aec0;
    font-size: 15px;
}

.g24-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e0;
    font-size: 16px;
}

.g24-checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.g24-form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--g24-border);
    border-radius: 6px;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.g24-form-check-input:checked {
    background-color: var(--g24-accent);
    border-color: var(--g24-accent);
}

.g24-form-check-label {
    color: var(--g24-secondary);
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

/* Footer components */
.g24-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--g24-border);
}

.g24-footer small {
    color: #718096;
    font-size: 12px;
}

/* Badge components */
.g24-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--g24-error), #c53030);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.g24-badge-admin {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Animations */
@keyframes g24-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g24-animate-fadeInUp {
    animation: g24-fadeInUp 0.6s ease-out;
}

.g24-animate-delay-1 {
    animation-delay: 0.1s;
}

.g24-animate-delay-2 {
    animation-delay: 0.2s;
}

.g24-animate-delay-3 {
    animation-delay: 0.3s;
}

.g24-animate-delay-4 {
    animation-delay: 0.4s;
}

/* Responsive design */
@media (max-width: 768px) {
    .g24-card {
        padding: 40px 30px;
        margin: 20px;
        max-width: none;
    }

    .g24-brand-title {
        font-size: 24px;
    }

    .g24-logo-container {
        width: 70px;
        height: 70px;
    }

    .g24-logo-container::after {
        font-size: 24px;
    }

    .g24-error-code {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .g24-wrapper {
        padding: 10px;
    }

    .g24-card {
        padding: 30px 20px;
    }

    .g24-brand-title {
        font-size: 20px;
    }

    .g24-error-code {
        font-size: 60px;
    }
}
