/* ===========================================
   REGISTER PAGE STYLES
   =========================================== */

/* Register Section */
.register-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.register-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    width: 100%;
}

.register-container-full {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Register Card */
.register-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    margin: 0 auto 2rem;
}

.register-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Register Header */
.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.register-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.register-header p {
    color: #a1a1aa;
    font-size: 1.1rem;
}

/* Form Styles */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
}

.form-section h3 {
    color: #e4e4e7;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.form-section h3 i {
    color: #8b5cf6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group label {
    color: #e4e4e7;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #8b5cf6;
}

.form-group input, .form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #71717a;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #18181b;
    color: #e4e4e7;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #8b5cf6;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.password-strength.weak {
    color: #f87171;
}

.password-strength.medium {
    color: #fbbf24;
}

.password-strength.strong {
    color: #4ade80;
}

/* Validation Messages */
.validation-message {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.validation-message.error {
    color: #f87171;
}

.validation-message.success {
    color: #4ade80;
}

/* Photo Upload */
.photo-upload-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    position: relative;
}

.photo-preview i {
    font-size: 3rem;
    color: rgba(139, 92, 246, 0.5);
}

.photo-preview span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.btn-upload {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-upload:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #a78bfa;
    transform: translateY(-2px);
}

/* Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #a1a1aa;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-color: #8b5cf6;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-container .link {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-container .link:hover {
    color: #06b6d4;
}

/* Register Button */
.register-btn {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border: none;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

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

.register-btn.loading {
    pointer-events: none;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.register-btn.loading .btn-text {
    opacity: 0;
}

.register-btn.loading .btn-loader {
    opacity: 1;
}

.spinner {
    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;
}

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

/* Register Footer */
.register-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.register-footer p {
    color: #a1a1aa;
    margin-bottom: 1rem;
}

.login-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-link:hover {
    color: #06b6d4;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-1px);
}

/* Quick Info Panel */
.quick-info {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.quick-info h3 {
    color: #e4e4e7;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-info h3 i {
    color: #06b6d4;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    transform: translateY(-1px);
}

.feature-item i {
    color: #06b6d4;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item strong {
    color: #e4e4e7;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: #a1a1aa;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

.cta-section {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.cta-section p {
    color: #a1a1aa;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cta-section strong {
    color: #8b5cf6;
}

/* Status Messages */
.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

.status-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.status-message.info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #06b6d4;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 1024px) {
    .register-container {
        grid-template-columns: 1fr 400px;
        align-items: start;
    }
    
    .register-card {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .register-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .register-header h1 {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .quick-info {
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .register-section {
        padding: 1rem 0.5rem;
    }
    
    .register-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .register-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .register-header h1 {
        font-size: 1.8rem;
    }
    
    .form-section {
        padding: 1rem;
    }
}

/* Animation for form inputs */
.form-group input:focus, .form-group select:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Form validation states */
.form-group.error input,
.form-group.error select {
    border-color: #f87171;
    background: rgba(239, 68, 68, 0.1);
}

.form-group.success input,
.form-group.success select {
    border-color: #4ade80;
    background: rgba(34, 197, 94, 0.1);
}

.form-group.error label {
    color: #f87171;
}

.form-group.success label {
    color: #4ade80;
}

/* Quick Info Horizontal Layout */
.quick-info-horizontal {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    margin: 2rem 0 0;
}

.info-title {
    color: #e4e4e7;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.info-title i {
    color: #06b6d4;
    font-size: 1.75rem;
}

.feature-list-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.feature-item-horizontal:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

.feature-item-horizontal i {
    font-size: 2.5rem;
    color: #8b5cf6;
    margin-bottom: 1rem;
}

.feature-item-horizontal strong {
    color: #f8fafc;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item-horizontal p {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Checkboxes Row */
.checkboxes-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.checkboxes-row .form-group {
    margin-bottom: 0;
}

/* Responsive for horizontal layout */
@media (max-width: 1024px) {
    .feature-list-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .checkboxes-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .feature-list-horizontal {
        grid-template-columns: 1fr;
    }
    
    .quick-info-horizontal {
        padding: 1.5rem;
    }
    
    .info-title {
        font-size: 1.2rem;
    }
}
