/* Login Form Variables */
.tpgallery-login-wrapper {
    max-width: 400px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tpgallery-login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.tpgallery-login-logo img {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.tpgallery-login-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #1a202c;
    font-weight: 600;
}

.tpgallery-form-group {
    margin-bottom: 20px;
}

.tpgallery-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.tpgallery-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s;
}

.tpgallery-form-group input:focus {
    border-color: #265cf2;
    outline: none;
}

.tpgallery-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.tpgallery-btn-primary {
    background-color: #1a1a1a;
    color: #ffffff !important;
    width: 100%;
}

.tpgallery-btn-primary:hover {
    background-color: #333333;
}

.tpgallery-btn-secondary {
    background-color: #e2e8f0;
    color: #2d3748 !important;
}

.tpgallery-btn-secondary:hover {
    background-color: #cbd5e0;
}

.tpgallery-btn-outline {
    background-color: transparent;
    border: 1px solid #e2e8f0;
    color: #4a5568 !important;
}

.tpgallery-btn-outline:hover {
    background-color: #f7fafc;
}

.tpgallery-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.tpgallery-alert-error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.tpgallery-alert-info {
    background-color: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

/* Gallery Styles */
.tpgallery-gallery-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tpgallery-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

@media (max-width: 600px) {
    .tpgallery-gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.tpgallery-gallery-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.tpgallery-gallery-actions {
    display: flex;
    gap: 10px;
}

.tpgallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .tpgallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.tpgallery-grid-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tpgallery-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tpgallery-item-thumb {
    width: 100%;
    aspect-ratio: 1;
    background-color: #edf2f7;
    overflow: hidden;
    position: relative;
}

.tpgallery-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tpgallery-item-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tpgallery-item-actions {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #edf2f7;
}

.tpgallery-item-name {
    font-size: 14px;
    color: #4a5568;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 130px;
}

.tpgallery-item-download {
    color: #a0aec0;
    transition: color 0.2s;
    flex-shrink: 0;
}

.tpgallery-item-download:hover {
    color: #3182ce;
}

