/* Login Portal Styles */
.login-hero {
    background: linear-gradient(135deg, #0a192f 0%, #1a365d 100%);
    padding: 100px 0 80px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
}

.login-hero-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.login-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.client-systems {
    background: #f8fafc;
    min-height: 70vh;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #0a192f;
    margin-bottom: 15px;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #00b4d8;
    box-shadow: 0 5px 25px rgba(0, 180, 216, 0.2);
}

.search-box i {
    color: #64748b;
    font-size: 18px;
    margin-right: 15px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #0a192f;
}

.search-clear {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.search-clear:hover {
    color: #ef4444;
}

.search-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 16px;
    background: #e2e8f0;
    border-radius: 20px;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.tag:hover {
    background: #cbd5e1;
    color: #0a192f;
}

.tag.active {
    background: #00b4d8;
    color: white;
}

/* Client Grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.client-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 180, 216, 0.15);
    border-color: #00b4d8;
}

.client-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 30px;
    color: white;
}

.client-info h3 {
    color: #0a192f;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.client-desc {
    color: #64748b;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.client-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.client-type, .client-status {
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.client-type {
    background: #e0f2fe;
    color: #0369a1;
}

.client-status {
    background: #dcfce7;
    color: #166534;
}

.client-status.active i {
    color: #22c55e;
    font-size: 8px;
}

.client-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-login {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0093c7, #005a8c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
}

.btn-info {
    padding: 12px 20px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #e2e8f0;
    color: #0a192f;
}

/* Quick Access */
.quick-access {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.quick-access h3 {
    color: #0a192f;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-link {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.quick-link:hover {
    background: white;
    border-color: #00b4d8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.1);
}

.quick-link i {
    font-size: 24px;
    color: #00b4d8;
    background: #e0f2fe;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-link span {
    color: #0a192f;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px;
    background: linear-gradient(135deg, #0a192f, #1a365d);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 30px;
}

.modal-info {
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: #0a192f;
    display: block;
    margin-bottom: 5px;
}

.info-item span {
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-outline {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0093c7, #005a8c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
}

.btn-outline {
    background: white;
    border: 2px solid #00b4d8;
    color: #00b4d8;
}

.btn-outline:hover {
    background: #f0f9ff;
}

/* Support Contacts */
.support-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.support-contacts a {
    color: #475569;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.support-contacts a:hover {
    color: #00b4d8;
}

.support-contacts i {
    width: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .client-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .search-box {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .login-hero {
        padding: 80px 0 60px;
    }
    
    .login-hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .client-card {
        padding: 20px;
    }
    
    .client-actions {
        flex-direction: column;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.empty-state h3 {
    color: #475569;
    margin-bottom: 10px;
}