/*
Modern Login Styles - Enhanced Design
*/

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base Styles */
html {
    color: #2d3748;
    /* Blue gradient background */
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: '.';
    clear: both;
    height: 0;
}

/* Login Wrapper */
.login-wrapper {
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 350px;
    /* Reduced width */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    /* Slightly smaller radius */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 30px 25px;
    /* Reduced padding */
    animation: slideUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo {
    height: 60px;
    /* Smaller logo */
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-title {
    font-size: 24px;
    /* Smaller title */
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 5px;
    /* Blue gradient text */
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 13px;
    /* Smaller subtitle */
    color: #718096;
    margin: 0;
}

/* Form */
.login-form {
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    /* Smaller padding */
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #26d0ce;
    /* Blue focus color */
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(38, 208, 206, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #a0aec0;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #26d0ce;
}

.toggle-password:focus {
    outline: none;
    color: #26d0ce;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #cbd5e0;
    border-radius: 5px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container:hover input~.checkmark {
    border-color: #26d0ce;
}

.checkbox-container input:checked~.checkmark {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    border-color: transparent;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

/* Button */
.btn-login {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    /* Blue gradient */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(38, 208, 206, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 208, 206, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

/* Recent Users */
.recent-users {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.recent-users h3 {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}

.users-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 350px;
    /* Limit height */
    overflow-y: auto;
    /* Enable vertical scroll */
    padding-right: 5px;
    /* Space for scrollbar */
}

/* Custom Scrollbar for Users List */
.users-list::-webkit-scrollbar {
    width: 6px;
}

.users-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.users-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.users-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.users-list li {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.users-list li:hover {
    background-color: #fff;
    border-color: #26d0ce;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(38, 208, 206, 0.1);
}

.users-list li img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #e2e8f0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info .username {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

.user-info .fullname {
    font-size: 11px;
    color: #718096;
}

/* Loading Indicator */
.v-loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 20px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #26d0ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
    }

    .login-title {
        font-size: 22px;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-login {
        width: 100%;
    }
}