/* Modern Register Styles - Based on Cart Design */

/* Переопределяем прозрачный текст из hero-page.css */
.register-wrapper .hero-title,
.hero-section .hero-title {
    -webkit-text-fill-color: white !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    background: none !important;
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 40px 0;
    margin-bottom: 30px;
}

.hero-title {
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    opacity: 1 !important;
    filter: none !important;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-align: center;
    margin: 0;
}

/* Register Content Wrapper */
.register-wrapper {
    margin-bottom: 60px;
}

/* Auth Detail Block */
.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

/* Card Header */
.card-header {
    background: white;
    padding: 32px 32px 0 32px;
    border: none;
}

.card-header h1 {
    color: #1a202c !important;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    opacity: 1 !important;
    filter: none !important;
}

.card-header h1 i {
    color: #6366f1;
    margin-right: 12px;
}

.card-header p {
    color: #718096;
    font-size: 1rem;
    text-align: center;
    margin: 0;
    margin-bottom: 24px;
}

/* Card Body / Auth Section */
.card-body {
    background: white;
    padding: 0 32px 32px 32px;
}

/* Auth Form */
.auth-form {
    margin-bottom: 24px;
}

/* Form Controls */
.form-floating {
    margin-bottom: 20px;
}

.form-floating > .form-control {
    height: 60px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 16px 8px 16px;
}

.form-floating > .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #fefefe;
    outline: none;
}

.form-floating > .form-control::placeholder {
    color: transparent;
}

.form-floating > label {
    padding: 20px 16px;
    color: #718096;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.form-floating > label i {
    color: #6366f1;
    margin-right: 8px;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-14px) translateX(4px);
    color: #6366f1;
    font-weight: 600;
}

.optional {
    color: #a0aec0;
    font-weight: 400;
    font-size: 0.85em;
}

/* Form Text */
.form-text {
    color: #718096;
    font-size: 0.875rem;
    margin-top: 6px;
    padding-left: 16px;
    font-weight: 500;
}

/* Button Styles */
.btn-auth {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 1.1rem;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, #5856eb 0%, #7c3aed 100%);
    color: white;
}

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

.btn-auth i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Alert Styles */
.alert {
    border-radius: 16px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fde8e8 100%);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-danger i {
    margin-right: 8px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    margin: 0;
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
}

.auth-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #5856eb;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .card-header {
        padding: 24px 24px 0 24px;
    }
    
    .card-header h1 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 0 24px 24px 24px;
    }
    
    .form-floating > .form-control {
        height: 56px;
        font-size: 0.95rem;
    }
    
    .btn-auth {
        height: 56px;
        font-size: 1rem;
        padding: 14px 24px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        margin: 0 16px;
        border-radius: 20px;
    }
    
    .card-header {
        padding: 20px 20px 0 20px;
    }
    
    .card-header h1 {
        font-size: 1.3rem;
    }
    
    .card-header p {
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 0 20px 20px 20px;
    }
}

/* Icon Animations */
.fas {
    transition: all 0.3s ease;
}

.form-floating:hover .fas {
    transform: scale(1.1);
    color: #6366f1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .card-header {
        padding: 1.5rem 1rem;
    }
    
    .card-header h1 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .form-floating > .form-control {
        height: 3rem;
        font-size: 0.95rem;
    }
    
    .btn-auth {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 0.5rem 0;
    }
    
    .auth-card {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .card-header {
        padding: 1.25rem 1rem;
    }
    
    .card-header h1 {
        font-size: 1.3rem;
    }
    
    .card-header p {
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Animation delays for form fields */
.form-floating:nth-child(1) { animation-delay: 0.1s; }
.form-floating:nth-child(2) { animation-delay: 0.2s; }
.form-floating:nth-child(3) { animation-delay: 0.3s; }
.form-floating:nth-child(4) { animation-delay: 0.4s; }
.form-floating:nth-child(5) { animation-delay: 0.5s; }

.form-floating {
    animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states enhancement */
.form-floating > .form-control:focus {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Loading state for button */
.btn-auth.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-auth.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    display: inline-block;
}

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