/* Cursor personalizado para página de registro */
html, body, * {
    cursor: url('/static/cursor/cursor_2.cur'), auto !important;
}

/* Register Page Styles */
:root {
    --bg-primary: #151519;
    --text-header: #FDDA9A;
    --text-white: #fff;
    --accent-dark: #222;
    --hover-bg: rgba(253, 218, 154, 0.1);
    --gold-gradient: linear-gradient(135deg, #d4af37, #f4cf5a);
}

body {
    background: var(--bg-primary);
    color: var(--text-white);
    font-family: 'El Messiri', Arial, sans-serif;
    min-height: 100vh;
    position: relative;
}

/* Background with subtle pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(244, 207, 90, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, #1a1a1e 100%);
    z-index: -1;
}

/* Background do mapa */
.bg-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/img/silkroad-map.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Register Container */
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.register-card {
    background: linear-gradient(145deg, rgba(34, 34, 34, 0.95), rgba(42, 42, 42, 0.9));
    border: 2px solid var(--text-header);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(253, 218, 154, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    position: relative;
}

.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    z-index: 1;
}

/* Header */
.register-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(244, 207, 90, 0.05));
    border-bottom: 1px solid rgba(253, 218, 154, 0.2);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.register-title {
    color: var(--text-header);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.register-title i {
    font-size: 1.8rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-subtitle {
    color: rgba(253, 218, 154, 0.8);
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Form Body */
.register-body {
    padding: 2rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    color: var(--text-header);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    font-size: 1rem;
    opacity: 0.8;
}

/* Form Controls */
.form-control, .form-select {
    background: rgba(34, 34, 34, 0.8);
    border: 2px solid rgba(253, 218, 154, 0.3);
    border-radius: 10px;
    color: var(--text-white);
    font-family: 'El Messiri', Arial, sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus, .form-select:focus {
    background: rgba(42, 42, 42, 0.9);
    border-color: var(--text-header);
    box-shadow: 
        0 0 0 3px rgba(253, 218, 154, 0.2),
        0 4px 12px rgba(212, 175, 55, 0.1);
    outline: none;
    color: var(--text-white);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Phone Input Group - Removed (using intl-tel-input) */

/* Select Styling for other selects */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23FDDA9A' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-select option {
    background: var(--accent-dark);
    color: var(--text-white);
    padding: 0.5rem;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.strength-weak { color: #dc3545; }
.strength-medium { color: #ffc107; }
.strength-strong { color: #28a745; }

/* Form Text */
.form-text {
    color: rgba(253, 218, 154, 0.6);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Error Messages */
.text-danger {
    color: #ff6b6b !important;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Terms Checkbox */
.form-check {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(253, 218, 154, 0.05);
    border: 1px solid rgba(253, 218, 154, 0.1);
    border-radius: 10px;
}

.form-check-input {
    background-color: rgba(34, 34, 34, 0.8);
    border: 2px solid rgba(253, 218, 154, 0.3);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--text-header);
    border-color: var(--text-header);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(253, 218, 154, 0.2);
}

.form-check-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-check-label a {
    color: var(--text-header);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-check-label a:hover {
    color: #f4cf5a;
    text-decoration: underline;
}

/* Submit Button */
.btn-register {
    background: var(--gold-gradient);
    border: none;
    border-radius: 12px;
    color: var(--bg-primary);
    font-family: 'El Messiri', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.875rem 2rem;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #f4cf5a, #d4af37);
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:active {
    transform: translateY(0);
}

/* Footer Links */
.register-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(253, 218, 154, 0.1);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(253, 218, 154, 0.3), transparent);
    margin: 1.5rem 0;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--text-header);
    border-radius: 10px;
    color: var(--text-header);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem;
}

.btn-outline-custom:hover {
    background: var(--text-header);
    color: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253, 218, 154, 0.2);
}

.home-link {
    color: rgba(253, 218, 154, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.home-link:hover {
    color: var(--text-header);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border-left: 4px solid #28a745;
    color: #4caf50;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border-left: 4px solid #dc3545;
    color: #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-container {
        padding: 1rem;
    }
    
    .register-header {
        padding: 1.5rem;
    }
    
    .register-title {
        font-size: 1.75rem;
    }
    
    .register-body {
        padding: 1.5rem;
    }
    
    /* Phone input group removed - using intl-tel-input */
    
    .register-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .register-title {
        font-size: 1.5rem;
    }
    
    .form-control, .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Loading Animation */
.btn-register.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-register.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* reCAPTCHA Styling */
.g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
    filter: brightness(1.1) contrast(1.2);
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(253, 218, 154, 0.3) !important;
}

/* reCAPTCHA responsive adjustments */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.8);
        margin: -5px 0;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.7);
        margin: -10px 0;
    }
}

/* Intl Tel Input Styles */
.iti {
    width: 100% !important;
    position: relative;
}

.iti__country-container {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding: 1px;
}

.iti__selected-country {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding: 0 8px;
    background: rgba(253, 218, 154, 0.1);
    border-left: 1px solid rgba(253, 218, 154, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    min-width: 52px;
    border-radius: 0 8px 8px 0;
    transition: all 0.2s ease;
}

.iti input[type="tel"] {
    padding-right: 60px !important;
    width: 100% !important;
    background: rgba(34, 34, 34, 0.8) !important;
    border: 2px solid rgba(253, 218, 154, 0.3) !important;
    color: var(--text-white) !important;
}

.iti input[type="tel"]:focus {
    border-color: var(--text-header) !important;
    background: rgba(42, 42, 42, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(253, 218, 154, 0.2), 0 4px 12px rgba(212, 175, 55, 0.1) !important;
}

.iti input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.iti__country-list {
    position: absolute;
    z-index: 1000;
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background-color: rgba(34, 34, 34, 0.95);
    border: 1px solid rgba(253, 218, 154, 0.3);
    border-radius: 8px;
    white-space: nowrap;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 300px;
    left: 0;
    top: 100%;
    backdrop-filter: blur(10px);
}

.iti__country {
    padding: 8px 12px;
    outline: none;
    color: var(--text-white);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.iti__country:last-child {
    border-bottom: none;
}

.iti__country:hover, 
.iti__country.iti__highlight {
    background-color: rgba(253, 218, 154, 0.2);
}

.iti__country-name {
    margin-left: 8px;
    flex: 1;
    text-align: left;
}

.iti__dial-code {
    color: var(--text-header);
    margin-left: 8px;
    font-weight: 600;
    min-width: 50px;
    text-align: left;
}

.iti__flag {
    width: 20px;
    height: 15px;
    box-shadow: 0px 0px 1px 0px #888;
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@23.0.11/build/img/flags.png");
    background-repeat: no-repeat;
    background-color: #DBDBDB;
    background-position: 20px 0;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@23.0.11/build/img/flags@2x.png");
        background-size: 5652px 15px;
    }
}

.iti__arrow {
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid var(--text-header);
    width: 0;
    height: 0;
    margin-left: 4px;
}

.iti__arrow--up {
    border-top: none;
    border-bottom: 4px solid var(--text-header);
}

/* Scrollbar customizado para a lista de países */
.iti__country-list::-webkit-scrollbar {
    width: 8px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.iti__country-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f4cf5a, #ffd700);
}

/* Firefox */
.iti__country-list {
    scrollbar-width: thin;
    scrollbar-color: var(--text-header) rgba(0, 0, 0, 0.3);
}

/* Responsividade para intl-tel-input */
@media (max-width: 768px) {
    .iti__country-list {
        width: 280px !important;
        max-height: 150px !important;
    }
    
    .iti__selected-country {
        min-width: 45px !important;
    }
    
    .iti input[type="tel"] {
        padding-right: 50px !important;
    }
} 