/* Register Page CSS */

/* Hero Section */
.register-hero {
    position: relative;
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -150px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: -125px;
    left: -75px;
}

.shape-3 {
    width: 180px;
    height: 180px;
    top: 30%;
    left: 15%;
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 20%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0;
    font-weight: 300;
}

/* Animation */
.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Register Section */
.register-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.register-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

/* Register Container */
.register-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.register-subtitle {
    color: #666;
    font-size: 1rem;
}

/* Social Register */
.social-register {
    margin-bottom: 30px;
}

.social-title {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.google-btn:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.social-btn.facebook-btn:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: white;
    color: #666;
    font-size: 0.9rem;
}

/* Form Fields */
.form-fields {
    position: relative;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #ff4757;
}

.input-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
}

.form-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 10px 0;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
    background: #2ed573;
}

.strength-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.strength-label {
    font-size: 0.8rem;
    color: #999;
    flex: 1;
    text-align: center;
    position: relative;
}

.strength-label:after {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 5px;
    background: #e0e0e0;
}

/* Requirements List */
.requirements-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #999;
}

.requirement-icon {
    width: 12px;
    height: 12px;
    fill: #999;
}

.requirement.valid {
    color: #2ed573;
}

.requirement.valid .requirement-icon {
    fill: #2ed573;
}

/* Match Indicator */
.match-indicator {
    margin-top: 8px;
    font-size: 0.9rem;
}

#passwordMatchText {
    color: #999;
}

.match-indicator.match #passwordMatchText {
    color: #2ed573;
}

.match-indicator.mismatch #passwordMatchText {
    color: #ff4757;
}

/* Checkbox Group */
.checkbox-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 5px;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-container input:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-hint {
    font-size: 0.85rem;
    color: #666;
    margin-left: 30px;
}

/* Terms Container */
.terms-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.terms-content {
    margin-bottom: 20px;
}

.terms-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.terms-content a {
    color: #667eea;
    text-decoration: none;
}

.terms-content a:hover {
    text-decoration: underline;
}

.terms-checkbox {
    margin: 0;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading:after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

.login-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #764ba2;
}

/* Benefits Section */
.benefits-section {
    display: flex;
    align-items: center;
}

.benefits-container {
    width: 100%;
}

.benefits-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Testimonial */
.testimonial {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-avatar-placeholder svg {
    width: 24px;
    height: 24px;
}

.author-info h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.author-info span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Error Messages */
.error-message {
    display: block;
    margin-top: 8px;
    color: #ff4757;
    font-size: 0.9rem;
}

/* Success/Error States */
.form-input.success {
    border-color: #2ed573;
}

.form-input.error {
    border-color: #ff4757;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .register-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .register-container {
        padding: 30px;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .requirements-list {
        grid-template-columns: 1fr;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .register-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .register-section {
        padding: 40px 0;
    }
    
    .register-container {
        padding: 25px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .register-title {
        font-size: 1.8rem;
    }
    
    .register-hero {
        padding: 80px 0 30px;
    }
}

/* Floating Animation for Shapes */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.shape {
    animation: float 6s ease-in-out infinite;
}

.shape-1 { animation-delay: 0s; }
.shape-2 { animation-delay: 1s; }
.shape-3 { animation-delay: 2s; }
.shape-4 { animation-delay: 3s; }