/* Styles for login/select_tenant.html */

/* Additional styles for tenant selection */
.tenant-selection {
    margin-top: 1rem;
    max-height: calc(100vh - 300px); /* Reserve space for header and button */
    display: flex;
    flex-direction: column;
}

.tenant-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 1rem 0;
    overflow-y: auto;
    max-height: calc(100vh - 400px);
    padding: 0.5rem 0.5rem 0 0;
}

/* Custom scrollbar for tenant grid */
.tenant-grid::-webkit-scrollbar {
    width: 6px;
}

.tenant-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.tenant-grid::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 3px;
}

.tenant-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

.tenant-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tenant-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.tenant-card.selected {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.tenant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tenant-card:hover::before,
.tenant-card.selected::before {
    opacity: 1;
}

.tenant-logo {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.75rem auto;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
}

.tenant-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tenant-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.4rem;
}

.tenant-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.tenant-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.continue-section {
    margin-top: 2rem;
    text-align: center;
    flex-shrink: 0; /* Prevent shrinking when parent uses flexbox */
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.continue-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    transform: scale(0.95);
}

.continue-btn.enabled {
    opacity: 1;
    transform: scale(1);
}

.continue-btn.enabled:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.tenant-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: white;
}

@media (max-width: 1024px) {
.tenant-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 768px) {
.tenant-grid {
    grid-template-columns: 1fr;
}

.back-link {
    position: static;
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}
}