/* @author GustavoChaconDeveloper - github.com/GustavoChaconDeveloper */
/* Modal de Login, Registro e Verificação */

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 480px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 36px;
    border-radius: 8px;
    background: rgba(0, 17, 52, 0.55);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 0 40px rgba(0, 51, 153, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
}

.modal-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-logo {
    height: 15px;
    width: auto;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px;
    width: 220px;
    height: 40px;
    background: rgba(0, 17, 52, 0.9);
    box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    flex: none;
    order: 2;
    flex-grow: 0;
    margin: 0 auto 25px auto;
    gap: 0;
}

.tab-btn {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.tab-btn.active {
    background: rgba(65, 105, 225, 0.4);
    color: #ffffff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    position: relative;
}

.password-group {
    position: relative;
}

.password-group-signup {
    position: relative;
}

.phone-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.country-code-select {
    width: 100px;
    padding: 15px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.country-code-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.country-code-select option {
    background: #0a1f5e;
    color: #ffffff;
    padding: 10px;
}

.phone-input {
    flex: 1;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #ffffff;
}

.forgot-password {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    text-align: right;
    transition: color 0.3s;
    margin-top: -10px;
}

.forgot-password:hover {
    color: rgba(255, 255, 255, 0.7);
}

.modal-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    font-weight: 400;
}

.btn-continue {
    width: 100%;
    padding: 13px;
    background: rgba(70, 80, 100, 0.5);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s;
}

.btn-continue:not(:disabled) {
    background: linear-gradient(135deg, #ff3366 0%, #ff1a4d 100%);
    color: #ffffff;
    cursor: pointer;
}

.btn-continue:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.4);
}

.password-requirements {
    margin-top: 8px;
    display: none;
}

.password-requirements.show {
    display: block;
}

.requirements-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}

.requirement i {
    color: #E53935;
    font-size: 11px;
    width: 14px;
}

.requirement.valid i {
    color: #00B04C;
}

.requirement span {
    color: rgba(255, 255, 255, 0.9);
}

.terms-text {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 15px;
    line-height: 1.6;
}

.terms-text a {
    color: #ffffff;
    text-decoration: underline;
}

.terms-text a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.divider {
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    background: linear-gradient(135deg, #1a3068 0%, #0f1f47 100%);
    padding: 0 15px;
}

.btn-google {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-google i {
    font-size: 18px;
    background: linear-gradient(to right, 
        #4285F4 0%, #4285F4 25%, 
        #EA4335 25%, #EA4335 50%, 
        #FBBC05 50%, #FBBC05 75%, 
        #34A853 75%, #34A853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Phone Verification Styles */
.verification-phone {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 20px 0;
    letter-spacing: 1px;
}

.verification-instruction {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 25px;
}

.code-input {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 20px;
    padding: 20px;
    font-family: 'Courier New', monospace;
}

.code-input::placeholder {
    letter-spacing: 12px;
    opacity: 0.3;
}

.btn-resend {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-resend:not(:disabled) {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.8) 0%, rgba(30, 144, 255, 0.8) 100%);
    cursor: pointer;
    border: none;
}

.btn-resend:not(:disabled):hover {
    background: linear-gradient(135deg, rgba(65, 105, 225, 1) 0%, rgba(30, 144, 255, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4);
}

#changePhoneNumber {
    display: block;
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

#changePhoneNumber:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Almost Done Screen */
.almost-done-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.almost-done-help {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 15px 0 20px 0;
    line-height: 1.4;
}

.almost-done-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.btn-ask-later {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 4px 24px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    background: transparent;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ask-later:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-lets-go {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 4px 24px;
    height: 48px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-lets-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive Design - Modal */
@media (max-width: 480px) {
    /* Modal responsive */
    .modal-content {
        width: 95%;
        padding: 25px 20px;
        max-height: 95vh;
    }
    
    .modal-top-bar {
        margin-bottom: 15px;
    }
    
    .modal-logo {
        height: 13px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-subtitle {
        font-size: 12px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .btn-continue {
        padding: 12px;
        font-size: 15px;
    }
    
    .btn-google {
        padding: 12px;
        font-size: 13px;
    }
    
    .requirements-title,
    .requirement span {
        font-size: 12px;
    }
    
    .terms-text {
        font-size: 10px;
    }
}

/* Verification Method Selection */
.verification-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.verification-option {
    display: block;
    position: relative;
    cursor: pointer;
}

.verification-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.verification-option input[type="radio"]:checked ~ .option-content {
    background: rgba(255, 51, 102, 0.1);
    border-color: #ff3366;
    box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.1);
}

.verification-option:hover .option-content {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 51, 102, 0.5);
}

.option-content i {
    font-size: 28px;
    color: #ff3366;
    min-width: 40px;
    text-align: center;
}

.option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.option-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.verification-option input[type="radio"]:checked ~ .option-content::after {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    font-size: 24px;
    color: #ff3366;
}

.method-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
}

.method-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .option-content {
        padding: 16px;
    }
    
    .option-content i {
        font-size: 24px;
        min-width: 35px;
    }
    
    .option-title {
        font-size: 15px;
    }
    
    .option-desc {
        font-size: 12px;
    }
    
    .method-title {
        font-size: 20px;
    }
    
    .method-subtitle {
        font-size: 13px;
    }
}


