:root {
    --uk-bg: #306672;
    --uk-bg-dark: #244f59;
    --uk-card: #ffffff;
    --uk-gold: #fac97c;
    --uk-btn: #079789;
    --uk-btn-hover: #06816f;
    --uk-title: #5b6b78;
    --uk-muted: #8a9198;
    --uk-text: #3d4a52;
    --uk-border: #e3e7ea;
    --uk-danger: #c0392b;
    --uk-radius: 20px;
}

* { box-sizing: border-box; }

body.uk-auth-body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--uk-bg-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 16px;
    position: relative;
}

/* Foto e rektoratit ne greyscale, stylish, mbulon te gjithe faqen ne dispozicion */
body.uk-auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('../images/rektorati-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.05) brightness(0.5);
    z-index: 0;
}
body.uk-auth-body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, rgba(36,79,89,0.72), rgba(20,45,52,0.82));
    z-index: 0;
}

.uk-card {
    background: var(--uk-card);
    width: 100%;
    max-width: 820px;
    border-radius: var(--uk-radius);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    padding: 52px 60px 48px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.uk-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background: var(--uk-gold);
}

.uk-logo-wrap { text-align: center; margin-bottom: 10px; }
.uk-logo-wrap img { width: 240px; height: auto; }

.uk-uni-name {
    text-align: center;
    color: var(--uk-title);
    font-weight: 700;
    font-size: clamp(16px, 3.2vw, 26px);
    line-height: 1.35;
    margin: 12px 0 4px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.uk-project-desc {
    text-align: center;
    color: var(--uk-muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 560px;
    margin: 14px auto 26px;
}
.uk-project-desc strong { color: var(--uk-title); }

.uk-section-title {
    text-align: center;
    color: var(--uk-title);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    margin: 0 0 30px;
    text-transform: uppercase;
}

.uk-row { display: flex; gap: 24px; }
.uk-row > div { flex: 1; }

.uk-field { margin-bottom: 24px; }

.uk-field label {
    display: block;
    font-size: 15px;
    color: var(--uk-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.uk-field input[type=text],
.uk-field input[type=email],
.uk-field input[type=date],
.uk-field input[type=password],
.uk-field select {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #c7ccd1;
    background: transparent;
    padding: 8px 2px 10px;
    font-size: 17px;
    color: var(--uk-text);
    font-family: inherit;
}
.uk-field input:focus, .uk-field select:focus {
    outline: none;
    border-bottom-color: var(--uk-btn);
}
.uk-field select { padding: 8px 2px 10px; background: transparent; }

.uk-password-wrap { position: relative; }
.uk-password-wrap input { padding-right: 30px; width: 100%; }
.uk-eye-toggle {
    position: absolute;
    right: 0;
    bottom: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--uk-muted);
    padding: 0;
    line-height: 0;
}
.uk-eye-toggle:hover { color: var(--uk-text); }

.uk-btn {
    display: block;
    width: 100%;
    background: var(--uk-btn);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
}
.uk-btn:hover { background: var(--uk-btn-hover); }

.uk-btn-ghost {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--uk-muted);
    border: 1.5px solid var(--uk-border);
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    text-align: center;
}
.uk-btn-ghost:hover { border-color: #b8bec4; color: var(--uk-text); }

.uk-footer-link {
    text-align: center;
    margin-top: 24px;
    font-size: 15px;
}
.uk-footer-link a { color: var(--uk-btn); font-weight: 700; text-decoration: none; }
.uk-footer-link a:hover { text-decoration: underline; }

.uk-error {
    background: #fdeceb;
    color: var(--uk-danger);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.uk-divider { border: none; border-top: 1px solid var(--uk-border); margin: 24px 0; }

@media (max-width: 720px) {
    .uk-card { padding: 32px 22px 28px; }
    .uk-row { flex-direction: column; gap: 0; }
}

/* Checklist dinamik i kerkesave te fjalekalimit */
.uk-pwd-strength-bar {
    height: 5px;
    border-radius: 3px;
    background: #e3e7ea;
    margin-top: 10px;
    overflow: hidden;
}
.uk-pwd-strength-fill {
    height: 100%;
    width: 0%;
    background: #c0392b;
    transition: width 0.2s ease, background 0.2s ease;
}
.uk-pwd-strength-label {
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    text-align: right;
    color: var(--uk-muted);
}

.uk-pwd-checklist {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    font-size: 13.5px;
}
.uk-pwd-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    color: var(--uk-danger);
    transition: color 0.15s;
}
.uk-pwd-checklist li.ok { color: #1b8a5a; }
.uk-pwd-checklist .uk-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--uk-danger);
    color: #fff;
    font-size: 10px;
    flex-shrink: 0;
}
.uk-pwd-checklist li.ok .uk-check-icon { background: #1b8a5a; }

/* Modal validimi - kur mungon nje fushe e detyrueshme */
.uk-validation-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 45, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.uk-validation-box {
    background: linear-gradient(160deg, #eaf3fc 0%, #dceafb 100%);
    border: 1px solid #bcd6ef;
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: uk-pop-in 0.18s ease-out;
}
.uk-validation-box .uk-validation-icon {
    font-size: 34px;
    margin-bottom: 10px;
}
.uk-validation-box p {
    color: #2a4a68;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 20px;
}
.uk-validation-box button {
    background: var(--uk-btn);
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.uk-validation-box button:hover { background: var(--uk-btn-hover); }

@keyframes uk-pop-in {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
