/**
 * Modern Auth Styles for 1Free.eu
 * Bootstrap 5 Compatible - Spójny design dla logowania, rejestracji i resetowania hasła
 */

/* Auth Container */
.auth-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.auth-container .container {
    position: relative;
    z-index: 1;
}

/* Auth Card */
.auth-container .card {
    border: none;
    overflow: hidden;
}

.auth-container .card.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3) !important;
}

/* Auth Form Wrapper */
.auth-form-wrapper {
    max-width: 100%;
}

.auth-form {
    max-width: 100%;
}

/* Form Controls */
.auth-form .form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.auth-form .form-control-lg:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

.auth-form .form-label {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.95rem;
}

/* Input Groups */
.auth-form .input-group {
    position: relative;
}

.auth-form .input-group .btn-outline-secondary {
    border-left: none;
    border-color: #e9ecef;
    transition: all 0.3s ease;
}

.auth-form .input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
}

.auth-form .form-control-lg:focus + .btn-outline-secondary,
.auth-form .input-group:focus-within .btn-outline-secondary {
    border-color: #0d6efd;
}

/* Social Login Buttons */
.social-login .btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.social-login .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-login .btn-primary {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
    border: none;
}

.social-login .btn-danger {
    background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
    border: none;
}

.social-login .btn-light {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.social-login .btn-light:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e9ecef;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider-text {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Auth Side Content */
.auth-side-content {
    animation: fadeInRight 0.6s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-side-content i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Features List */
.features-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.feature-item i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.auth-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.auth-form .btn-primary:active {
    transform: translateY(-1px);
}

/* Alerts */
.auth-form .alert {
    border-radius: 0.75rem;
    border: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form .alert-heading {
    font-size: 1rem;
    font-weight: 600;
}

/* Links */
.auth-form a {
    transition: all 0.3s ease;
}

.auth-form a:hover {
    color: #0d6efd !important;
    text-decoration: underline !important;
}

/* Form Text */
.form-text {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Gradient Primary Background */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .auth-container .card .row > div {
        padding: 2rem !important;
    }
    
    .auth-side-content {
        margin-top: 2rem;
    }
    
    .auth-side-content i {
        font-size: 3rem !important;
    }
}

@media (max-width: 575.98px) {
    .auth-container {
        padding: 1rem 0;
    }
    
    .auth-container .card {
        border-radius: 1rem !important;
    }
    
    .auth-container .card .row > div {
        padding: 1.5rem !important;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .auth-side-content i {
        font-size: 2.5rem !important;
    }
    
    .features-list {
        font-size: 0.9rem;
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Password Strength Indicator (optional) */
.password-strength {
    height: 4px;
    margin-top: 0.5rem;
    border-radius: 2px;
    background: #e9ecef;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.password-strength-weak {
    background: #dc3545;
}

.password-strength-medium {
    background: #ffc107;
}

.password-strength-strong {
    background: #198754;
}

/* Custom Scrollbar for Auth Pages */
.auth-container ::-webkit-scrollbar {
    width: 8px;
}

.auth-container ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.auth-container ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.auth-container ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

