/* Register Page Styles */
:root {
    --primary-color: #3a7bd5;
    --primary-light: #6abbff;
    --primary-dark: #0d47a1;
    --secondary-color: #6D28D9;
    --secondary-light: #8B5CF6;
    --secondary-dark: #4C1D95;
    --dark-color: #1E293B;
    --light-color: #F1F5F9;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --card-border-radius: 20px;
    --input-border-radius: 12px;
    --btn-border-radius: 12px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--dark-color);
    background-size: 300% 300%;
    animation: gradientBackground 20s ease infinite;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.register-container {
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.register-card {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    transition: transform var(--transition-speed);
}

.register-card:hover {
    transform: translateY(-5px);
}

.register-row {
    display: flex;
    flex-wrap: wrap;
}

.register-content {
    padding: 3rem;
    position: relative;
}

.register-image {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    padding: 3rem;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.register-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.register-image-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    overflow: hidden;
}

.register-image-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58.84-20.92,117.68-42.72,177.52-42.72s118.68,21.8,177.52,42.72c58.84,20.92,117.68,42.72,177.52,42.72s118.68-21.8,177.52-42.72c58.84-20.92,117.6-42.72,177.44-42.72s118.68,21.8,177.52,42.72c58.84,20.92,117.68,42.72,177.52,42.72s118.68-21.8,177.52-42.72' fill='%23ffffff' opacity='0.2'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: repeat-x;
}

.register-image-wave:nth-child(1) {
    animation: wave 15s linear infinite;
    z-index: 1;
    opacity: 0.7;
    bottom: 0;
}

.register-image-wave:nth-child(2) {
    animation: wave 10s linear infinite;
    z-index: 2;
    opacity: 0.5;
    bottom: 10px;
}

@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.8);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

.register-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.register-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.register-header h1 {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.register-header h2 {
    font-weight: 400;
    color: #718096;
    font-size: 1.1rem;
    margin-top: 0;
}

.input-group {
    margin-bottom: 1.75rem;
    border-radius: var(--input-border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all var(--transition-speed);
}

.input-group:focus-within {
    box-shadow: 0 4px 20px rgba(58, 123, 213, 0.15);
}

.input-group-text {
    background-color: #f8f9fa;
    border: none;
    color: var(--primary-color);
    padding-left: 18px;
    padding-right: 18px;
    font-size: 1.1rem;
}

.form-control {
    border: none;
    padding: 12px 15px;
    height: auto;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: background-color var(--transition-speed);
}

.form-control:focus {
    box-shadow: none;
    background-color: #fff;
    border-color: transparent;
}

.btn-primary {
    padding: 12px 15px;
    font-weight: 600;
    border-radius: var(--btn-border-radius);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.8s;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-primary:hover::after {
    left: 100%;
}

.form-label {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-text {
    color: #718096;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.form-check-label {
    font-size: 0.9rem;
    color: #4a5568;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    margin-right: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 3px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.password-strength {
    height: 5px;
    border-radius: 10px;
    background-color: #e2e8f0;
    margin-top: 10px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength.weak .password-strength-bar {
    width: 25%;
    background-color: var(--danger-color);
}

.password-strength.medium .password-strength-bar {
    width: 50%;
    background-color: var(--warning-color);
}

.password-strength.strong .password-strength-bar {
    width: 75%;
    background-color: var(--primary-color);
}

.password-strength.very-strong .password-strength-bar {
    width: 100%;
    background-color: var(--success-color);
}

.register-footer {
    text-align: center;
    margin-top: 2.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.register-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-speed);
    position: relative;
}

.register-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.register-footer a:hover {
    color: var(--primary-dark);
}

.register-footer a:hover::after {
    width: 100%;
}

.alert {
    border-radius: var(--input-border-radius);
    padding: 15px;
    margin-bottom: 1.75rem;
    border: none;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background-color: #FEE2E2;
    color: #B91C1C;
}

.alert-success {
    background-color: #D1FAE5;
    color: #047857;
}

.alert-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.alert-dismissible .btn-close {
    padding: 15px;
    color: inherit;
    opacity: 0.7;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefit-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.benefit-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.register-image-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.register-image-footer {
    margin-top: 2rem;
    text-align: center;
}

.user-count {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.user-count-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* NFT Graphic */
.nft-graphic {
    margin: 2rem 0;
    position: relative;
    height: 180px;
}

.nft-card {
    width: 120px;
    height: 160px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: float 6s infinite ease-in-out;
}

.nft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    z-index: 1;
}

.nft-card:nth-child(1) {
    left: 0;
    top: 10px;
    animation-delay: 0s;
}

.nft-card:nth-child(2) {
    left: 60px;
    top: 0;
    animation-delay: 1.5s;
}

.nft-card:nth-child(3) {
    left: 120px;
    top: 20px;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Avatar with glow */
.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 15px;
}

.user-avatar::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    z-index: -1;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.user-avatar i {
    color: var(--primary-color);
    font-size: 30px;
}

/* hCaptcha Container */
.h-captcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.captcha-container {
    margin-bottom: 1.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--input-border-radius);
    padding: 20px;
    background-color: #f8fafc;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.captcha-title {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Wallet icon and input styling */
.wallet-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.wallet-tip {
    background-color: #EFF6FF;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.wallet-tip-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.wallet-tip-title i {
    margin-right: 8px;
}

.wallet-tip-content {
    font-size: 0.85rem;
    color: #4B5563;
    margin-bottom: 0;
}

.is-valid {
    border-color: var(--success-color) !important;
    background-color: #f0fdf4 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310B981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid {
    border-color: var(--danger-color) !important;
    background-color: #fef2f2 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23EF4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23EF4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Feedback de validação aprimorado */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--success-color);
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.was-validated .form-control:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback {
    display: block;
}

.security-tips {
    margin-top: 2rem;
    background-color: #f8fafc;
    border-radius: var(--input-border-radius);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.security-tips h6 {
    color: #334155;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.security-tips h6 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.security-tips ul {
    padding-left: 0;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #64748b;
    list-style: none;
}

.security-tips li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.security-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.password-toggle {
    background-color: #f8f9fa;
    border: none;
    color: #64748b;
    transition: color var(--transition-speed);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle:focus {
    box-shadow: none;
    outline: none;
}

/* Modal Styles for Terms */
.modal-content {
    border-radius: var(--card-border-radius);
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.terms-section {
    margin-bottom: 2rem;
}

.terms-section h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.terms-section p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.terms-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.terms-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
    line-height: 1.5;
}

.terms-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem;
}

/* Responsividade */
@media (max-width: 991.98px) {
    .register-image {
        display: none;
    }
    
    .register-content {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .register-header h1 {
        font-size: 1.8rem;
    }
    
    .register-header h2 {
        font-size: 1rem;
    }
    
    .register-content {
        padding: 1.5rem;
    }
}