* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    min-height: 100vh;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.twitter-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.twitter-input-container:focus-within {
    border-color: #204ff5;
    box-shadow: 0 0 10px rgba(32, 79, 245, 0.2);
}

.twitter-prefix {
    padding: 12px 0 12px 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    white-space: nowrap;
}

.twitter-input {
    flex: 1;
    background: none !important;
    border: none !important;
    padding: 12px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    border: none !important;
    box-shadow: none !important;
}

.twitter-input:focus {
    outline: none;
}

.container {
    position: relative;
    width: 400px;
    min-height: 500px;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(32, 79, 245, 0.1);
    z-index: 1;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    color: #204ff5;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo a {
    text-align: center;
    margin-bottom: 30px;
    color: #204ff5;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #204ff5;
    box-shadow: 0 0 10px rgba(32, 79, 245, 0.2);
}

.country-select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

.country-select:focus {
    outline: none;
    border-color: #204ff5;
    box-shadow: 0 0 10px rgba(32, 79, 245, 0.2);
}

.country-select option {
    background-color: #0f0f0f;
    color: #ffffff;
    padding: 10px;
}

/* Custom styles for the country dropdown with flags */
.country-select-container {
    position: relative;
    width: 100%;
}

.selected-flag {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    pointer-events: none;
}

.country-select.has-flag {
    padding-left: 35px;
}

/* Styling for the notification that shows when no country is selected */
.no-country-selected {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.no-country-selected.show {
    display: block;
}

button {
    width: 100%;
    padding: 12px;
    background: #204ff5;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #1a3dbf;
    transform: translateY(-2px);
}

.switch-form {
    text-align: center;
    margin-top: 20px;
    color: #ffffff;
}

.switch-form a {
    color: #204ff5;
    text-decoration: none;
    cursor: pointer;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    margin-top: 4px;
}

.very-weak {
    background: #ff4444;
    width: 20%;
}

.weak {
    background: #ffa600;
    width: 40%;
}

.medium {
    background: #ffff00;
    width: 60%;
}

.strong {
    background: #00ff00;
    width: 80%;
}

.very-strong {
    background: #204ff5;
    width: 100%;
}

/* Form transition */
.form-container {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-container.fade-out {
    opacity: 0;
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.match-message {
    font-size: 12px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.match-success {
    color: #204ff5;
}

.match-error {
    color: #ff4444;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 2000;
}

#notification {
    z-index: 2000 !important;
}

.notification.show {
    opacity: 1 !important;
    transform: translateY(0);
}

.notification.success {
    background: rgba(32, 79, 245, 0.9);
}

.notification.error {
    background: rgba(255, 68, 68, 0.9);
}

/* Disable form during submission */
.form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Add new styles for 2FA */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(32, 79, 245, 0.15);
    transform: translateY(20px);
    opacity: 1;
    transition: all 0.3s ease;
}

.modal.show {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}

.otp-input {
    width: 45px;
    height: 55px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #204ff5;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #204ff5;
    box-shadow: 0 0 10px rgba(32, 79, 245, 0.2);
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: fit-content;
    margin: 25px auto;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
}

.modal-actions .secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-actions .secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.setup-steps {
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.setup-steps ol {
    margin-left: 20px;
    line-height: 1.6;
}

.setup-steps li {
    margin-bottom: 10px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #4169e1 0%, #6a5acd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: #4169e1;
    box-shadow: 0 0 10px rgba(65, 105, 225, 0.2);
}

.match-message {
    font-size: 12px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.match-success {
    color: #204ff5;
}

.match-error {
    color: #ff4444;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background: rgba(32, 79, 245, 0.9);
}

.notification.error {
    background: rgba(255, 68, 68, 0.9);
}

/* Disable form during submission */
.form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Add new styles for 2FA */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(32, 79, 245, 0.15);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}

.otp-input {
    width: 45px;
    height: 55px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #204ff5;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #204ff5;
    box-shadow: 0 0 10px rgba(32, 79, 245, 0.2);
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: fit-content;
    margin: 25px auto;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
}

.modal-actions .secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-actions .secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.setup-steps {
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.setup-steps ol {
    margin-left: 20px;
    line-height: 1.6;
}

.setup-steps li {
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #4169e1 0%, #6a5acd 100%);
    border: none;
    padding: 12px 24px;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.match-message {
    font-size: 12px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.match-success {
    color: #204ff5;
}

.match-error {
    color: #ff4444;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background: rgba(32, 79, 245, 0.9);
}

.notification.error {
    background: rgba(255, 68, 68, 0.9);
}

/* Disable form during submission */
.form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Add new styles for 2FA */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(32, 79, 245, 0.15);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}

.otp-input {
    width: 45px;
    height: 55px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #204ff5;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #204ff5;
    box-shadow: 0 0 10px rgba(32, 79, 245, 0.2);
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: fit-content;
    margin: 25px auto;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
}

.modal-actions .secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-actions .secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.setup-steps {
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.setup-steps ol {
    margin-left: 20px;
    line-height: 1.6;
}

.setup-steps li {
    margin-bottom: 10px;
}

.strength-very-strong {
    background: linear-gradient(135deg, #4169e1 0%, #6a5acd 100%);
}

.success-message {
    background: linear-gradient(135deg, #4169e1 0%, #6a5acd 100%);
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.match-message {
    font-size: 12px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.match-success {
    color: #204ff5;
}

.match-error {
    color: #ff4444;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background: rgba(32, 79, 245, 0.9);
}

.notification.error {
    background: rgba(255, 68, 68, 0.9);
}

/* Disable form during submission */
.form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Add new styles for 2FA */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(32, 79, 245, 0.15);
    transform: translateY(20px);
    opacity: 1;
    transition: all 0.3s ease;
}

.modal.show {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}

.otp-input {
    width: 45px;
    height: 55px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #204ff5;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #204ff5;
    box-shadow: 0 0 10px rgba(32, 79, 245, 0.2);
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: fit-content;
    margin: 25px auto;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
}

.modal-actions .secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-actions .secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.setup-steps {
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.setup-steps ol {
    margin-left: 20px;
    line-height: 1.6;
}

.setup-steps li {
    margin-bottom: 10px;
}

.resend-code {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.resend-code a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.resend-code a:hover {
    text-decoration: underline;
}
