﻿/* ── Page background ── */
body.login-page {
    background: linear-gradient(135deg, #383c5e 0%, #030518 40%, #b5cdbb 75%, #bec8d9 100%);
    min-height: 100vh;
    font-family: 'Poppins', 'Source Sans Pro', sans-serif;
    position: relative;
    overflow: hidden;
}

    /* Subtle animated geometric shapes in background */
    body.login-page::before,
    body.login-page::after {
        content: '';
        position: fixed;
        border-radius: 50%;
        opacity: 0.07;
        background: #ffffff;
        animation: floatBubble 12s ease-in-out infinite;
    }

    body.login-page::before {
        width: 500px;
        height: 500px;
        top: -150px;
        left: -150px;
        animation-duration: 14s;
    }

    body.login-page::after {
        width: 350px;
        height: 350px;
        bottom: -100px;
        right: -100px;
        animation-duration: 10s;
        animation-direction: reverse;
    }

@keyframes floatBubble {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 20px) scale(1.05);
    }
}

/* ── Loading overlay ── */
.ajax-loader {
    background: rgba(15, 32, 90, 0.75);
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
}

    .ajax-loader img {
        width: 90px;
        height: 80px;
    }

/* ── Card container ── */
.login-box {
    width: 420px;
    margin: 0 auto;
    padding-top: 5vh;
}

/* ── Logo section ── */
.login-logo-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    padding: 28px 30px 22px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-bottom: none;
}

    .login-logo-card img.app-logo {
        height: 64px;
        width: auto;
        margin-bottom: 12px;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    }

    .login-logo-card .app-title {
        color: #ffffff;
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 0.5px;
        margin: 0;
        line-height: 1.2;
    }

    .login-logo-card .app-subtitle {
        color: rgba(255,255,255,0.75);
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        margin-top: 4px;
    }

/* ── Form card ── */
.login-box-body {
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    padding: 30px 35px 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    border-top: none;
}

.login-box-msg {
    color: #546e7a;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}

/* ── Info fields (company, date) ── */
.info-field {
    background: linear-gradient(135deg, #e8f4fd, #e3f2fd);
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    color: #101229;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .info-field i {
        color: #1976d2;
        font-size: 14px;
    }

    .info-field textarea, .info-field-textarea {
        background: linear-gradient(135deg, #e8f4fd, #e3f2fd) !important;
        border: 1px solid #bbdefb !important;
        border-radius: 10px !important;
        font-size: 13px !important;
        color: #101229 !important;
        font-weight: 500 !important;
        resize: none !important;
        box-shadow: none !important;
        padding: 9px 14px !important;
    }

.info-field-date {
    background: linear-gradient(135deg, #e8f4fd, #e3f2fd) !important;
    border: 1px solid #bbdefb !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    color: #101229 !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

/* ── Input fields ── */
.input-group-login {
    position: relative;
    margin-bottom: 16px;
}

    .input-group-login .input-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #90a4ae;
        font-size: 15px;
        z-index: 2;
        transition: color 0.2s;
    }

    .input-group-login input.form-input {
        width: 100%;
        padding: 12px 16px 12px 42px;
        border: 1.5px solid #e0e0e0;
        border-radius: 10px;
        font-size: 14px;
        font-family: 'Poppins', sans-serif;
        color: #37474f;
        background: #fafafa;
        outline: none;
        transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    }

        .input-group-login input.form-input:focus {
            border-color: #101229;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
        }

            .input-group-login input.form-input:focus ~ .input-icon {
                color: #101229;
            }

/* ── Remember me & Sign In row ── */
.signin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #546e7a;
    cursor: pointer;
    user-select: none;
}

    .remember-label input[type="checkbox"] {
        accent-color: #101229;
        width: 15px;
        height: 15px;
        cursor: pointer;
    }

/* ── Sign In button ── */
.btn-signin {
    background: linear-gradient(135deg, #101229, #3c8dbc);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 28px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(21,101,192,0.4);
}

    .btn-signin:hover {
        background: linear-gradient(135deg, #0d47a1, #101229);
        box-shadow: 0 6px 20px rgba(21,101,192,0.5);
        transform: translateY(-1px);
    }

    .btn-signin:active {
        transform: translateY(0);
    }

/* ── Divider ── */
.login-divider {
    border: none;
    border-top: 1px solid #eceff1;
    margin: 20px 0 14px;
}

/* ── Help link ── */
.help-link {
    text-align: center;
    font-size: 13px;
}

    .help-link a {
        color: #1976d2;
        text-decoration: none;
        font-weight: 500;
    }

        .help-link a:hover {
            text-decoration: underline;
        }

/* ── Footer ── */
.login-footer {
    text-align: center;
    margin-top: 18px;
    padding-bottom: 20px;
}

    .login-footer a {
        color: rgba(255,255,255,0.75);
        font-size: 11.5px;
        text-decoration: none;
        font-weight: 400;
        letter-spacing: 0.2px;
        transition: color 0.2s;
    }

        .login-footer a:hover {
            color: #fff;
        }

/* ── Alert ── */
.alert-danger {
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        width: 94%;
        padding-top: 3vh;
    }

    .login-box-body {
        padding: 24px 20px 20px;
    }

    .login-logo-card {
        padding: 22px 20px 18px;
    }
}
