/*
© 2025 Sharon Aicler (saichler@gmail.com)

Layer 8 Ecosystem is licensed under the Apache License, Version 2.0.
You may obtain a copy of the License at:

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/* Layer 8 - Login Page Component Styles */
/* Part 4 of 4 - Load this file last */
/* Footer, toast notifications, spinner, responsive, scrollbar */

.layer8d-login-footer {
    padding: 20px 30px;
    background: var(--layer8d-bg-light);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.ecosystem-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ecosystem-logo {
    height: 24px;
    opacity: 1;
}

.ecosystem-text {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Responsive */
@media (max-width: 480px) {
    .layer8d-login-header {
        padding: 24px 20px;
    }

    .layer8d-login-form {
        padding: 24px 20px;
    }

    .app-title {
        font-size: 18px;
    }

    .app-logo {
        max-width: 64px;
        max-height: 64px;
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    animation: slideIn 0.3s ease-out;
    background: var(--layer8d-bg-white);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--noc-cyan);
}

.toast-success {
    border-left-color: var(--noc-green);
    background: var(--layer8d-bg-white);
}

.toast-error {
    border-left-color: var(--layer8d-error);
    background: var(--layer8d-bg-white);
}

.toast-warning {
    border-left-color: var(--layer8d-warning);
    background: var(--layer8d-bg-white);
}

.toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
}

.toast-success .toast-icon {
    background: rgba(22, 163, 74, 0.1);
    color: var(--noc-green);
}

.toast-error .toast-icon {
    background: rgba(220, 38, 38, 0.1);
    color: var(--layer8d-error);
}

.toast-warning .toast-icon {
    background: rgba(217, 119, 6, 0.1);
    color: var(--layer8d-warning);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast.removing {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
