﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

/* ============================================
   Aksia Login Page Styles
   ============================================ */

.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

.login-background {
    /* TODO: Replace with your actual background image */
    background-image: url('../images/login-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2c3e50; /* Fallback dark color if no image */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-background:before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(14,19,24,.8)
    }


.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
    padding: 20px;
    z-index: 1;
}

.login-logo {
    background-image: url(../images/Aksia_Logo_white.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 20px;
    width: 200px;
    height: 60px;
    transition: all .2s;
    transform: translateX(10px);
    opacity: 0;
}

    .login-logo.reveal {
        transform: translateX(0px);
        opacity: 1;
    }

.login-box {
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.login-form {
    display: flex;
    flex-wrap: wrap;
    transition: all .2s;
    transform: translateX(10px);
    opacity: 0;
}

    .login-form.reveal {
        transform: translateX(0px);
        opacity: 1;
    }

.login-inputs {
    flex: 1;
    min-width: 200px;
}

.login-input-group {
}

    .login-input-group:first-child input {
        border-top-left-radius: 15px;
    }


    .login-input-group:last-child input {
        border-bottom-left-radius: 15px;
    }


.login-input {
    width: 100%;
    padding: 5px 15px;
    border: none;
    background-color: white;
    font-size: 14px;
    outline: none;
}


    .login-input::placeholder {
        color: #aaaaaa;
    }

.login-button {
    background-color: #888888;
    border: none;
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 100px;
    background-color: #e6e6e6;
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
}

    .login-button:hover {
        background-color: #999999;
    }

    .login-button:disabled {
        cursor: not-allowed;
        opacity: 0.8;
    }

    .login-button .spinner {
        display: none;
        width: 18px;
        height: 18px;
        border: 2px solid #666;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    .login-button.loading .spinner {
        display: inline-block;
    }

    .login-button.loading .button-text {
        display: none;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    transition: all .2s;
    transform: translateX(10px);
    opacity: 0;
}

    .login-footer.reveal {
        transform: translateX(0px);
        opacity: 1;
    }

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    margin-bottom: 0;
}

    .remember-me input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #666;
    }

.forgot-password-link {
    color: #fff;
    font-size: 13px;
}

    .forgot-password-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

/* ============================================
   Form Title and Message Styles
   ============================================ */

.form-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
}

    .form-title.error-title {
        color: #ff6b6b;
    }

.form-subtitle {
    color: #cccccc;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.form-error {
    background-color: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
}

    /* Hide validation summary when there are no errors */
    .form-error.validation-summary-valid {
        display: none;
    }

.form-info {
    background-color: rgba(100, 181, 246, 0.15);
    border: 1px solid rgba(100, 181, 246, 0.3);
    color: #64b5f6;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
}

.form-success {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    color: #4caf50;
}

.form-error-icon {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.error-icon {
    width: 60px;
    height: 60px;
    color: #ff6b6b;
}

/* ============================================
   Single Input Form Styles
   ============================================ */

.login-input-group.single-input input {
    border-radius: 15px 0 0 15px;
}

.verification-code-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 18px;
    font-weight: 500;
}

/* ============================================
   Stacked Form Styles (for multi-input forms)
   ============================================ */

.login-form.stacked-form {
    flex-direction: column;
}

.login-inputs.stacked {
    width: 100%;
}

    .login-inputs.stacked .login-input-group:first-child input {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        border-bottom-left-radius: 0;
    }

    .login-inputs.stacked .login-input-group:last-child input {
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        border-top-left-radius: 0;
    }

    .login-inputs.stacked .login-input-group input {
        border-radius: 0;
        border-top: 1px solid #eee;
    }

    .login-inputs.stacked .login-input-group:first-child input {
        border-top: none;
    }

.stacked-button-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.login-button.stacked-button {
    border-radius: 15px;
    width: 100%;
}

.field-validation-error {
    color: #ff6b6b;
    font-size: 11px;
    display: block;
    padding: 2px 15px;
    background: rgba(255, 107, 107, 0.1);
}

/* ============================================
   Logout Button Styles
   ============================================ */

.login-form.logout-buttons {
    justify-content: center;
}

.login-button.logout-confirm {
    border-radius: 15px;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Footer Styles
   ============================================ */

.login-footer.centered {
    justify-content: center;
}

.footer-text {
    color: #999999;
    font-size: 12px;
}

.support-link {
    color: #64b5f6;
}

    .support-link:hover {
        color: #90caf9;
        text-decoration: underline;
    }

/* Validation styles for login page */
.login-box .text-danger {
    color: #ff6b6b !important;
    font-size: 12px;
    padding: 5px 20px;
    display: block;
}

.login-box .validation-summary-errors {
    background-color: white;
    color: #b94a48;
    padding: 10px 20px;
    margin: 10px;
}

    .login-box .validation-summary-errors ul {
        margin: 0;
        padding-left: 20px;
        color: #ff6b6b;
        font-size: 13px;
    }
