﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-image: url('../../Images/bg-crux.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(5, 12, 30, 0.65);
        z-index: 0;
    }

.login-card {
    position: relative;
    z-index: 1;
    width: 400px;
    background: rgba(15, 20, 35, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 40px 36px;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.60);
}

.logo-wrap {
    text-align: center;
    margin-bottom: 28px;
}

    .logo-wrap img {
        height: 100px;
        width: auto;
        mix-blend-mode: screen;
    }

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.field {
    margin-bottom: 18px;
}

    .field label {
        display: block;
        font-size: 10px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #6e7d99;
        margin-bottom: 7px;
    }

    .field input {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 6px;
        padding: 11px 14px;
        font-size: 14px;
        color: #e2e8f4;
        outline: none;
        transition: border-color 0.15s;
    }

        .field input::placeholder {
            color: #CAD5E2;
        }

        .field input:focus {
            border-color: #3d8bff;
            background: rgba(61, 139, 255, 0.06);
        }

.btn-signin {
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;    
    cursor: pointer;
    transition: opacity 0.15s;
}

    .btn-signin:hover {
        opacity: 0.88;
    }

/* ── Keep dark theme for dropdowns on the login / company-select card ── */
.login-card .custom-ddl-trigger,
.login-card .custom-ddl-trigger:hover {
    background:   rgba(255, 255, 255, 0.05) !important;
    color:        #e2e8f4;
    border-color: rgba(255, 255, 255, 0.12);
}
.login-card .custom-ddl-wrap.open .custom-ddl-trigger {
    background:   rgba(61, 139, 255, 0.06) !important;
}
.login-card .crux-input,
.login-card .crux-select {
    background:   rgba(255, 255, 255, 0.05) !important;
    color:        #e2e8f4;
    border-color: rgba(255, 255, 255, 0.12);
}

.card-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: #3e4f6a;
}

/* ── Set Password Card ── */
.set-pwd-header {
    text-align: center;
    margin-bottom: 22px;
}

.set-pwd-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #CAD5E2;
}

.set-pwd-title {
    font-size: 18px;
    font-weight: 600;
    color: #CAD5E2;
    margin-bottom: 8px;
}

.set-pwd-subtitle {
    font-size: 15px;
    color: #CAD5E2;
    line-height: 1.7;
}

/* ── Go Back ── */
.go-back-wrap {
    text-align: center;
    margin-top: 14px;
}

.go-back-link {
    font-size: 12px;
    color: #6e7d99;
    cursor: pointer;
    transition: color 0.15s;
}

.go-back-link:hover {
    color: #3d8bff;
}

.set-pwd-email {
    margin-top: 10px;
    font-size: 12px;
    color: #6e7d99;
}

.set-pwd-email span {
    color: #3d8bff;
    font-weight: 600;
    font-size: 16px;
}

/* ── Button loading spinner ── */
.btn-signin:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.btn-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}
