/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-message {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Manrope", sans-serif;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.modal-close:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

body {
    background-color: #0A0A0A;
    margin: 0;
    padding: 1rem;
    min-height: 100vh;
    font-size: 16px;
}

#text_logo {
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    margin-top: 10px;
    font-size: 1rem;
}

#nav_btn {
    background: none;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#nav_btn svg {
    display: block;
    width: 29px;
    height: 29px;
}

#nav_btn svg path {
    stroke: white;
    fill: none;
}

#nav_btn:hover svg path {
    stroke: #cccccc;
}

#nav_bar {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 150px;
}

.nav_content {
    color: rgba(255, 255, 255, 0.663);
    font-family: "Manrope", sans-serif;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav_content:hover {
    color: white;
}

#main_heading {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    padding-top: 3rem;
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    margin-bottom: 10px;
    line-height: 1.2;
}

#sub_heading {
    font-family: "Manrope", sans-serif;
    color: white;
    font-size: 1.5rem;
    text-decoration: underline;
    text-align: center;
    margin-bottom: 3rem;
}

.account_container {
    max-width: 450px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 1;
}

.account_container.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.account_container.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.form_title {
    font-family: "Manrope", sans-serif;
    color: white;
    font-size: 1.125rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.form_subtitle {
    font-family: "Manrope", sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    min-height: 44px;
    flex: 1;
    min-width: 120px;
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

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

/* Loading spinner styles */
@keyframes loadingSpinner {
    0% { content: "/"; }
    25% { content: "-"; }
    50% { content: "\\"; }
    75% { content: "|"; }
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "/";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-family: monospace;
    animation: loadingSpinner 1s infinite steps(4);
}

#ruler_1 {
    width: 90%;
    margin: 3rem auto;
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

#copyright {
    color: rgba(255, 255, 255, 0.59);
    font-family: "Manrope", sans-serif;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.copyright_effect:hover {
    color: white;
}

.form-label {
    color: white;
    font-family: "Manrope", sans-serif;
    margin-bottom: 8px;
    display: block;
    text-align: left;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #6F6F6F;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: "Manrope", sans-serif;
    background-color: #2a2a2a;
    color: white;
    margin-bottom: 15px;
    box-sizing: border-box;
    min-height: 44px;
}

.form-input:focus {
    outline: none;
    border-color: #ffffff;
    background-color: #333333;
}

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

.password-input-wrapper {
    position: relative;
}

.eye-toggle {
    position: absolute;
    right: 12px;
    top: 42%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.318);
    stroke: rgba(255, 255, 255, 0.318);
    background: none;
    border: none;
    padding: 0;
    min-height: 44px;
    min-width: 44px;
}

.api-key-help {
    font-size: 0.875rem;
    font-family: "Manrope", sans-serif;
    color: white;
    text-align: center;
    margin-top: 15px;
}

.api-key-link {
    color: rgba(255, 255, 255, 0.675);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: "Manrope", sans-serif;
    min-height: 44px;
    padding: 0.5rem;
}

.api-key-link:hover {
    color: white;
}

.external-link-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.logo {
    stroke: white;
    width: 28px;
    height: 28px;
    margin: 2rem auto;
    display: block;
}

.hidden {
    display: none;
}

.step-description {
    font-family: "Manrope", sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
    color:rgba(255, 255, 255, 0.537);
    font-family: "Manrope", sans-serif;
}

.toast-message {
    font-size: 13px;
    color: white;
    font-family: "Manrope", sans-serif;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: white;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    #main_heading {
        font-size: 2rem;
        padding-top: 2rem;
    }

    #sub_heading {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .account_container {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    #nav_bar {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

@media (max-width: 480px) {
    #main_heading {
        font-size: 1.75rem;
    }

    #sub_heading {
        font-size: 1.125rem;
    }

    .form_title {
        font-size: 1rem;
    }

    .btn {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .btn {
        flex: none;
        width: 100%;
    }
}