/* Login stranica - izdvojeno iz inline <style> u index.php (bivše linije 768-1120). */
    @import url('/assets/vendor/fonts/fonts.css');

    body {
        background-color: #eee;
        font-family: 'Red Hat Display', sans-serif;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
        color: #1d1d1d;
    }

    .login-container {
        width: 100%;
        max-width: 650px; 
        padding: 15px;
    }

    /* CARD STYLE */
    .card-custom {
        border: none;
        border-radius: 12px;
        box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.05);
        background-color: #fff;
        overflow: hidden;
    }

    .intro-text {
        text-align: justify;
        margin-bottom: 30px;
        font-size: 14px;
        line-height: 1.6;
        color: #555;
        font-weight: 500;
    }

    .register-label {
        font-size: 0.85rem;
        color: #6c757d;
        font-weight: 500;
    }

    /* COMPANY ERROR STYLE (Red Hat Metro - Minimal) */
    .company-error-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: #fff;
        z-index: 99999;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    .company-error-text {
        font-family: 'Red Hat Display', sans-serif;
        font-weight: 600;
        color: #333;
        text-align: center;
        font-size: clamp(16px, 4vw, 24px); /* Responsive font size */
        line-height: 1.5;
        max-width: 600px;
    }

    /* INPUTS */
    .input-group {
        border: 2px solid #ccc;
        border-radius: 10px;
        overflow: hidden;
        transition: border-color 0.2s;
    }
    .input-group:focus-within {
        border-color: #003399;
    }
    .input-group-text, .form-control-custom, .form-select-custom {
        height: 56px !important;  
        display: flex;
        align-items: center;
        background-color: #fff; 
        border: none !important;
        border-radius: 0 !important;
        font-size: 16px;
    }

    .input-group-text {
        width: 56px; 
        justify-content: center;
        background-color: #f8f8f8;
        color: #003399;
        font-size: 22px;
    }

    .form-control-custom, .form-select-custom {
        padding-left: 15px; 
        color: #000;
        font-weight: 600;
        font-family: 'Red Hat Display', sans-serif;
    }

    /* FOCUS STATE */
    .form-control-custom:focus, .form-select-custom:focus {
        background-color: #fff;
        box-shadow: none;
        outline: none;
    }
    .input-group:focus-within .input-group-text {
        background-color: #003399;
        color: #fff;
    }

    /* LABELS */
    .form-label {
        font-size: 13px;
        font-weight: 800;
        color: #333;
        margin-bottom: 8px;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* REGISTER LINK */
    .register-link-container {
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 14px 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.05);
    }

    .register-link {
        color: #003399;
        font-weight: 800;
        font-size: 16px;
        text-decoration: none;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .register-label {
        color: #777;
        font-size: 14px;
        font-weight: 600;
    }

    .register-link:hover {
        color: #002266;
        text-decoration: underline;
        transform: none;
    }

    /* BUTTON */
    .btn-custom {
        background-color: #003399;
        color: white;
        padding: 18px;
        border-radius: 12px;
        font-weight: 800;
        letter-spacing: 1px;
        transition: all 0.2s;
        border: none;
        width: 100%;
        font-size: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        text-transform: uppercase;
    }

    .btn-custom:hover {
        background-color: #0044cc;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,51,153,0.3);
        color: white;
    }

    .btn-custom:active {
        transform: translateY(0);
    }

    /* REGISTER BUTTON (secondary, below login) */
    .btn-register {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 16px;
        border-radius: 12px;
        font-weight: 800;
        letter-spacing: 0.5px;
        font-size: 15px;
        text-transform: uppercase;
        text-decoration: none;
        background-color: #fff;
        color: #003399;
        border: 2px solid #003399;
        transition: all 0.2s;
    }
    .btn-register i { font-size: 20px; }
    .btn-register:hover {
        background-color: #003399;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,51,153,0.25);
    }

    /* SEGMENTED USER TYPE */
    .segmented-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .segmented-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 16px 8px;
        background: #5588dd;
        color: #ffffff;
        border: none;
        border-radius: 12px;
        font-weight: 800;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.15s;
        user-select: none;
        width: 100%;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .segmented-btn i { font-size: 18px; flex-shrink: 0; }
    .segmented-btn:hover { background: #3366cc; color: #ffffff; }
    .btn-check:checked + .segmented-btn {
        background: #003399;
        color: #fff;
        border: none;
        box-shadow: 0 2px 8px rgba(0,51,153,0.3);
    }
    .btn-check:focus-visible + .segmented-btn {
        outline: 2px solid #0044cc;
        outline-offset: 2px;
    }

    .forgot-link {
        color: #555;
        font-size: 13px;
        text-decoration: none;
        font-weight: 700;
    }
    
    .forgot-link:hover {
        color: #003399;
        text-decoration: underline;
    }

    /* CHECKBOX */
    .metro-checkbox {
        appearance: none;
        -webkit-appearance: none;
        width: 24px;
        height: 24px;
        border: 2px solid #bbb;
        background-color: #fff;
        cursor: pointer;
        display: grid;
        place-content: center;
        border-radius: 6px;
        margin-right: 10px;
        transition: all 0.15s;
    }

    .metro-checkbox:checked {
        background-color: #003399;
        border-color: #003399;
    }

    .metro-checkbox:checked::after {
        content: '\2713';
        font-size: 16px;
        font-weight: 900;
        color: white;
        line-height: 1;
    }

    .checkbox-container {
        display: flex;
        align-items: center;
        cursor: pointer;
    }
    
    /* MODAL STYLES */
    .modal-content { 
        border-radius: 16px !important; 
        border: none; 
        box-shadow: 0 0 0 1000px rgba(255,255,255,0.8); 
        position: relative;
        overflow: hidden;
    }
    
    /* Custom Width for Reset Modal */
    .modal-custom-width { max-width: 700px; }
    @media (max-width: 992px) { .modal-custom-width { max-width: 95%; } }

    /* Gumb za zatvaranje (plutajući) */
    .btn-close-abs {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10;
        font-size: 16px;
        opacity: 0.5;
        transition: opacity 0.2s;
    }
    .btn-close-abs:hover {
        opacity: 1;
    }

    .alert {
        border-radius: 10px;
        border: none;
        border-left: 5px solid;
    }

    /* MOBILE OPTIMIZATION */
    @media (max-width: 576px) {
        body { background-color: #fff; }
        .login-container { padding: 10px; width: 100%; max-width: 100%; }
        .card-custom { border-radius: 0; box-shadow: none; }
        .card-body { padding: 25px !important; }
        .btn-custom { padding: 16px; font-size: 14px; border-radius: 10px; }
        .input-group-text, .form-control-custom, .form-select-custom { height: 50px !important; font-size: 15px; }
        .input-group-text { width: 48px; font-size: 20px; }
        .input-group { border-radius: 8px; }
        .intro-text { font-size: 13px; line-height: 1.5; margin-bottom: 25px; }
        .segmented-btn { padding: 14px 8px; font-size: 13px; border-radius: 10px; }
        .segmented-btn i { font-size: 16px; }
        .btn-register { padding: 14px; font-size: 13px; }
    }
