/* Стили для авторизации и личного кабинета */
.auth-container {
    max-width: 500px;
    margin: 40px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-header {
    background-color: #1a73e8;
    color: white;
    padding: 20px;
    text-align: center;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 16px;
    cursor: pointer;
    font-weight: 500;
    color: #5f6368;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.auth-form {
    padding: 24px;
    display: none;
}

.auth-form.active {
    display: block;
}

/* Дополнительные стили из login.php */
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #1a73e8;
    outline: none;
}

.submit-button {
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #0d66d0;
}

.error-message {
    background-color: #fdeded;
    color: #5f2120;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background-color: #e6f4ea;
    color: #1e4620;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.back-to-store {
    text-align: center;
    padding: 16px;
    font-size: 14px;
    color: #5f6368;
    border-top: 1px solid #e0e0e0;
}

.back-to-store a {
    color: #1a73e8;
    text-decoration: none;
}

.login-header {
    background-color: #1a73e8;
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.login-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-logo {
    font-size: 20px;
    font-weight: 500;
}

.back-button {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.back-button i {
    margin-right: 6px;
}

/* Стили для кабинета из styles.css */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.app-card:hover {
    transform: translateY(-3px);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-name {
    font-size: 14px;
    text-align: center;
    font-weight: 400;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-rating {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    align-items: center;
    font-size: 12px;
    color: #5f6368;
    margin-top: 4px;
}

.app-rating i {
    color: #fbbc04;
    margin-right: 4px;
    font-size: 10px;
}

.no-games {
    text-align: center;
    padding: 40px;
    color: #5f6368;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Стили для кабинета */
.action-button {
    background-color: #1a73e8;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.action-button:hover {
    background-color: #0d66d0;
}

.app-icon a img {
    transition: transform 0.2s;
}

.app-icon a:hover img {
    transform: scale(1.05);
}

.app-name a:hover {
    text-decoration: underline !important;
}

.footer {
    margin-top: 40px;
    text-align: center;
    padding-bottom: 20px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .auth-container {
        margin: 20px auto;
        max-width: 100%;
    }
    
    .auth-tab {
        padding: 12px;
        font-size: 14px;
    }
    
    .auth-form {
        padding: 15px;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 90%;
    }
    
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
} 